flask-jwt icon indicating copy to clipboard operation
flask-jwt copied to clipboard

Allow fallback to 'id' key

Open jobevers opened this issue 9 years ago • 2 comments

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.

jobevers avatar Feb 14 '16 04:02 jobevers

Same as #63

pall-valmundsson avatar Feb 18 '16 14:02 pall-valmundsson

I second this

ghost avatar May 25 '17 19:05 ghost