Commit 19c4d97a authored by Yann Cézard's avatar Yann Cézard Committed by Simo Sorce

Set claims after reg_claims (or _add_default_claims will never be called).

parent bb42eca5
......@@ -191,15 +191,15 @@ class JWT(object):
if header:
self.header = header
if claims:
self.claims = claims
if default_claims is not None:
self._reg_claims = default_claims
if check_claims is not None:
self._check_claims = check_claims
if claims:
self.claims = claims
if jwt is not None:
self.deserialize(jwt, key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment