Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge 65c4950 into c270841
Browse files Browse the repository at this point in the history
  • Loading branch information
jurueta committed May 12, 2021
2 parents c270841 + 65c4950 commit 7b0b573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_jwt/__init__.py
Expand Up @@ -50,7 +50,7 @@ def _default_jwt_payload_handler(identity):
iat = datetime.utcnow()
exp = iat + current_app.config.get('JWT_EXPIRATION_DELTA')
nbf = iat + current_app.config.get('JWT_NOT_BEFORE_DELTA')
identity = getattr(identity, 'id') or identity['id']
identity = identity['id'] if (type(identity) is dict) else getattr(identity, 'id')
return {'exp': exp, 'iat': iat, 'nbf': nbf, 'identity': identity}


Expand Down

0 comments on commit 7b0b573

Please sign in to comment.