Skip to content

Commit

Permalink
Ensure correct arguments order in decode super call
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Jun 22, 2017
1 parent bc96621 commit 7c1e61d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 7c1e61d

Please sign in to comment.