flask-jwt
flask-jwt copied to clipboard
Allow fallback to 'id' key
If identity is a dictionary, identity = getattr(identity, 'id') or identity['id'] fails with AttributeError: 'dict' object has no attribute 'id'
Setting the default allows the id key to be used.
Same as #63
I second this