From 7c1e61dde27bafe16e7d1bb6e35199e778962742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Thu, 22 Jun 2017 12:29:36 -0400 Subject: [PATCH] Ensure correct arguments order in decode super call --- jwt/api_jwt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py index 4d3c927e..589fa3aa 100644 --- a/jwt/api_jwt.py +++ b/jwt/api_jwt.py @@ -73,8 +73,10 @@ def decode(self, jwt, key='', verify=True, algorithms=None, options=None, options = {'verify_signature': verify} else: options.setdefault('verify_signature', verify) - decoded = super(PyJWT, self).decode(jwt, key, algorithms, options, - **kwargs) + + decoded = super(PyJWT, self).decode( + jwt, key=key, algorithms=algorithms, options=options, **kwargs + ) try: payload = json.loads(decoded.decode('utf-8'))