Skip to content

Commit

Permalink
get_jwt_identity() returns None instead of {} if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
vimalloc committed May 30, 2017
1 parent f86cf67 commit d517f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_jwt_extended/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_jwt_identity():
Returns the identity of the JWT in this context. If no JWT is present,
None is returned.
"""
return get_raw_jwt().get('identity', {})
return get_raw_jwt().get('identity', None)


def get_jwt_claims():
Expand Down

0 comments on commit d517f2d

Please sign in to comment.