docs: def authorize(credentials, client_class=Client):
      """Login to Google API using OAuth2 credentials.
      This is a shortcut function which
      instantiates :class:`gspread.client.Client`
      and performs login right away.
  
      :returns: :class:`gspread.Client` instance.
      """
      client = client_class(auth=credentials)
      client.login()
      return client