From 24b29adfebcb4f057a3cef5aaf35653bc0c1c8cc Mon Sep 17 00:00:00 2001 From: Jaroslaw Zabiello Date: Tue, 19 Apr 2022 14:51:58 +0100 Subject: [PATCH] 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. --- CHANGELOG.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 06d281c1..4fc0a598 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 ~~~~~