code: def check_token(data: dict, token: str) -> bool:
      
      param_hash = data.get('hash', '') or ''
      return param_hash == generate_hash(data, token)
docs: Validate auth token
  
      :param data:
      :param token:
      :return: