pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Fix incorrect id resolution #68

Open jasonchoimtt opened 9 years ago

jasonchoimtt commented 9 years ago

The current code does not correctly resolve the id from the intended order: attribute -> key, but instead will raise an AttributeError if there is no such attribute. It will also not accept a falsy .id attribute, e.g. 0. This patch fixes the issue.

pall-valmundsson commented 9 years ago

This is addressed in #63 as well.