From 20137609c2636c9579a598e64c02a69484fc16d2 Mon Sep 17 00:00:00 2001 From: Jaroslaw Zabiello Date: Tue, 19 Apr 2022 13:00:14 +0100 Subject: [PATCH] Update CHANGELOG.rst 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 ~~~~~