Skip to content

Commit

Permalink
fixup! PyJWT.decode: move verify param into options
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jun 12, 2017
1 parent 947c8c1 commit 91d06b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def decode(self, jwt, key='', verify=True, algorithms=None, options=None,
payload, signing_input, header, signature = self._load(jwt)

if options is None:
options = {}
options.setdefault('verify_signature', verify)
options = {'verify_signature': verify}
else:
options.setdefault('verify_signature', verify)
decoded = super(PyJWT, self).decode(jwt, key, algorithms, options,
**kwargs)

Expand Down

0 comments on commit 91d06b4

Please sign in to comment.