summaryrefslogtreecommitdiff
path: root/CHANGELOG.rst
diff options
context:
space:
mode:
authorJaroslaw Zabiello <hipertracker@gmail.com>2022-04-19 14:51:58 +0100
committerGitHub <noreply@github.com>2022-04-19 19:51:58 +0600
commit24b29adfebcb4f057a3cef5aaf35653bc0c1c8cc (patch)
treee8496fb90c15e9f45bb89476ed70f8bd3abd72af /CHANGELOG.rst
parent31f5acb8fb3ec6cdfe2b1b0a4a8f329b5f3ca67f (diff)
downloadpyjwt-24b29adfebcb4f057a3cef5aaf35653bc0c1c8cc.tar.gz
Update CHANGELOG.rst (#751)
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.
Diffstat (limited to 'CHANGELOG.rst')
-rw-r--r--CHANGELOG.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 06d281c..4fc0a59 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -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
~~~~~