code: def get_auth_token(self, user_payload):
          
          token = user_payload.get('token') or None
          if not token:
              raise ValueError('`user_payload` must provide api token')
  
          return '{auth_header_prefix} {token}'.format(
              auth_header_prefix=self.auth_header_prefix, token=token)
docs: Extracts token from the `user_payload`