algorithm="HS256"

This commit is contained in:
CHIEFSOFT\ameye
2024-12-08 22:14:10 -05:00
parent 3713a12ee7
commit 722db36bad
+1 -1
View File
@@ -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