diff options
author | José Padilla <jpadilla@webapplicate.com> | 2017-06-22 12:29:36 -0400 |
---|---|---|
committer | José Padilla <jpadilla@webapplicate.com> | 2017-06-22 12:29:36 -0400 |
commit | 7c1e61dde27bafe16e7d1bb6e35199e778962742 (patch) | |
tree | 62520842cb048854e3af139be2435d1e1aff675e | |
parent | bc966214de9852258dd00dd2efc01ce6c9a22ac6 (diff) | |
download | pyjwt-7c1e61dde27bafe16e7d1bb6e35199e778962742.tar.gz |
Ensure correct arguments order in decode super call
-rw-r--r-- | jwt/api_jwt.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py index 4d3c927..589fa3a 100644 --- a/jwt/api_jwt.py +++ b/jwt/api_jwt.py @@ -73,8 +73,10 @@ class PyJWT(PyJWS): 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')) |