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