Skip to content

Commit

Permalink
Update CHANGELOG.rst (#751)
Browse files Browse the repository at this point in the history
Add an example of how to convert the old v1.x syntax into v2.x one. That old syntax was popular but it was not clear how to change it after pyjwt upgrade.
  • Loading branch information
hipertracker committed Apr 19, 2022
1 parent 31f5acb commit 24b29ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -164,6 +164,11 @@ For example, instead of
use
``jwt.decode(encoded, key, algorithms=["HS256"], options={"require": ["exp"]})``.

And the old v1.x syntax
``jwt.decode(token, verify=False)``
is now:
``jwt.decode(jwt=token, key='secret', algorithms=['HS256'], options={"verify_signature": False, "verify_exp": True})``

Added
~~~~~

Expand Down

0 comments on commit 24b29ad

Please sign in to comment.