code: def jwt_verify_token(headers):
      
      # Get the token from headers
      token = headers.get(
          current_app.config['OAUTH2SERVER_JWT_AUTH_HEADER']
      )
      if token is None:
          raise JWTInvalidHeaderError
      # Get authentication type
      authentication_type = \
          current_app.config['OAUTH2SERVER_JWT_AUTH_HEADER_TYPE']
      # Check if the type should be checked
      if authentication_type is not None:
          # Get the prefix and the token
          prefix, token = token.split()
          # Check if the type matches
          if prefix != authentication_type:
              raise JWTInvalidHeaderError
  
      try:
          # Get the token data
          decode = jwt_decode_token(token)
          # Check the integrity of the user
          if current_user.get_id() != decode.get('sub'):
              raise JWTInvalidIssuer
          return decode
      except _JWTDecodeError as exc:
          raise_from(JWTDecodeError(), exc)
      except _JWTExpiredToken as exc:
          raise_from(JWTExpiredToken(), exc)
docs: Verify the JWT token.
  
      :param dict headers: The request headers.
      :returns: The token data.
      :rtype: dict