From 722db36bad47f56a3f782e77e5685644f58d42c8 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 8 Dec 2024 22:14:10 -0500 Subject: [PATCH] algorithm="HS256" --- services/web/project/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 06fc616..3b85e9d 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -38,7 +38,7 @@ def token_required(f): if not token: return jsonify({'message': 'Error - missing token'}), 403 try: - data = jwt.decode(token, app.config['SECRET_KEY']) + data = jwt.decode(token, app.config['SECRET_KEY'], algorithm="HS256") except: return jsonify({'message': 'Token is invalid'}),403