Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed May 20, 2024
1 parent 197f425 commit e5c5985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foca/security/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _get_public_keys(

# Convert to PEM if requested
if pem:
key = key.public_bytes(
key = key.public_bytes( # type: ignore
encoding=serialization.Encoding.PEM,
format=serialization.PublicFormat.SubjectPublicKeyInfo,
).decode('utf-8').encode('unicode_escape').decode('utf-8')
Expand Down

0 comments on commit e5c5985

Please sign in to comment.