original_docstring: 
          Global function that ensures that  will be used to decode the token
      
docstring: Global function that ensures that  will be used to decode the token
docstring_tokens: Global function that ensures that will be used to decode the token
code: def decode_token(request):
      """
          Global function that ensures that  will be used to decode the token
      """
  
      token = request.headers.get('Authorization')
      if token is None:
          abort(401, message="No token provided")
      try:
          payload = jwt.decode(token, Config.SECRET_KEY)
      except jwt.DecodeError:
          abort(401, message="Token is invalid")
      except jwt.ExpiredSignature:
          abort(401, message="Token has expired")
  
      return payload['sub']
code_tokens: def decode_token ( request ) : token = request . headers . get ( 'Authorization' ) if token is None : abort ( 401 , message = "No token provided" ) try : payload = jwt . decode ( token , Config . SECRET_KEY ) except jwt . DecodeError : abort ( 401 , message = "Token is invalid" ) except jwt . ExpiredSignature : abort ( 401 , message = "Token has expired" ) return payload [ 'sub' ]
short_docstring: Global function that ensures that  will be used to decode the token
short_docstring_tokens: Global function that ensures that will be used to decode the token
comment: """
          Global function that ensures that  will be used to decode the token
      """