remotes/1725865088694522691/master
Mustafa Yontar 4 years ago
parent ce28cf59b6
commit 590a3e8f93
  1. 8
      restapi/jwt.py

@ -3,9 +3,7 @@ from flask_jwt_extended.utils import verify_token_claims
from flask_jwt_extended.view_decorators import _decode_jwt_from_request
def get_jwt_from_request():
jwt_data, jwt_header = _decode_jwt_from_request(request_type='access')
verify_token_claims(jwt_data)
return jwt_data['identity']
jwt_data, jwt_header = _decode_jwt_from_request(request_type='access')
verify_token_claims(jwt_data)
return jwt_data['identity']

Loading…
Cancel
Save