algorithm="HS256"
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user