Skip to content

Commit 82be81b

Browse files
committed
Fix hard coded algorithm
1 parent aff5175 commit 82be81b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_jwt_extended/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def _decode_jwt_from_request():
153153

154154
token = parts[1]
155155
secret = _get_secret_key()
156-
return _decode_jwt(token, secret, 'HS256')
156+
algorithm = get_algorithm()
157+
return _decode_jwt(token, secret, algorithm)
157158

158159

159160
def _handle_callbacks_on_error(fn):

0 commit comments

Comments
 (0)