Skip to content

Commit

Permalink
Update sample usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
luhn committed Oct 16, 2023
1 parent 872dcf6 commit 1909433
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ Retrieve RSA signing keys from a JWKS endpoint
>>> signing_key = jwks_client.get_signing_key_from_jwt(token)
>>> data = jwt.decode(
... token,
... signing_key.key,
... algorithms=["RS256"],
... signing_key,
... audience="https://expenses-api",
... options={"verify_exp": False},
... )
Expand Down Expand Up @@ -356,8 +355,7 @@ is not built into pyjwt.
# now, decode_complete to get payload + header
data = jwt.decode_complete(
id_token,
key=signing_key.key,
algorithms=signing_algos,
key=signing_key,
audience=client_id,
)
payload, header = data["payload"], data["header"]
Expand Down

0 comments on commit 1909433

Please sign in to comment.