Skip to content

Commit

Permalink
Fix incorrect require option
Browse files Browse the repository at this point in the history
  • Loading branch information
johachi committed Apr 27, 2021
1 parent e92ef3d commit 692adae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ API Reference

:param dict options: extended decoding and validation options

* ``require_exp=False`` check that ``exp`` (expiration) claim is present
* ``require_iat=False`` check that ``iat`` (issued at) claim is present
* ``require_nbf=False`` check that ``nbf`` (not before) claim is present
* ``require=[]`` list of claims that must be present. E.g. ``require=["exp", "iat", "nbf"]``.
Only verifies that the claims exists. Does NOT verify that the claims are valid.
* ``verify_aud=True`` but will be ignored if ``verify_signature`` is ``False``.
Check that ``aud`` (audience) claim matches ``audience``
* ``verify_iat=True`` but will be ignored if ``verify_signature`` is ``False``.
Expand Down

0 comments on commit 692adae

Please sign in to comment.