pallets-eco / flask-jwt

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

Fix incorrect id resolution #68

Open jasonchoimtt opened 8 years ago

jasonchoimtt commented 8 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 8 years ago

This is addressed in #63 as well.