We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f35d97 commit bc72bb6Copy full SHA for bc72bb6
jwt/api_jwt.py
@@ -45,8 +45,8 @@ def _get_default_options() -> dict[str, bool | list[str]]:
45
def encode(
46
self,
47
payload: dict[str, Any],
48
- key: AllowedPrivateKeys | str | bytes,
49
- algorithm: str | None = "HS256",
+ key: AllowedPrivateKeys | PyJWK | str | bytes,
+ algorithm: str | None = api_jws.DEFAULT_ALGORITHM,
50
headers: dict[str, Any] | None = None,
51
json_encoder: type[json.JSONEncoder] | None = None,
52
sort_headers: bool = True,
0 commit comments