pallets-eco / flask-jwt

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

update _default_jwt_payload_handler #103

Open buddiex opened 8 years ago

buddiex commented 8 years ago

made changes to cater for when the instance of the return identity is a dictionary. the current code returns the following error

  identity = getattr(identity, 'id') or identity['id']
AttributeError: 'dict' object has no attribute 'id'
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 95.652% when pulling 801fcce4c6b96b7b42f9139ef312d56d2033e038 on buddiex:master into c27084114e258863b82753fc574a362cd6c62fcd on mattupstate:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 95.652% when pulling 801fcce4c6b96b7b42f9139ef312d56d2033e038 on buddiex:master into c27084114e258863b82753fc574a362cd6c62fcd on mattupstate:master.

buddiex commented 8 years ago

will close this... I seams to already been taken care of by other pull request. #63