diff --git a/src/shared/Authentication.py b/src/shared/Authentication.py index f561f56..0800239 100644 --- a/src/shared/Authentication.py +++ b/src/shared/Authentication.py @@ -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: