You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
When passing
{'id': 'someId'}
into the_default_jwt_payload_handler
it raises an exception.The problem is in this expression:
identity = getattr(identity, 'id') or identity['id']
https://github.com/mattupstate/flask-jwt/blob/master/flask_jwt/__init__.py#L53
It must be:
identity = getattr(identity, 'id', None) or identity['id']
The text was updated successfully, but these errors were encountered: