Skip to content

Commit

Permalink
Merge 30c62b1 into 4255d6a
Browse files Browse the repository at this point in the history
  • Loading branch information
btotharye committed Nov 5, 2018
2 parents 4255d6a + 30c62b1 commit 72fbb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/Authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def decode_token(token):
"""
re = {'data': {}, 'error': {}}
try:
payload = jwt.decode(token, os.getenv('JWT_SECRET_KEY'))
payload = jwt.decode(token, os.getenv('JWT_SECRET_KEY'), algorithms=['HS256'])
re['data'] = {'user_id': payload['sub']}
return re
except jwt.ExpiredSignatureError as e1:
Expand Down

0 comments on commit 72fbb2f

Please sign in to comment.