code: def get_new_user_credentials(self):
          
          # OAuth2.0 authorization flow
          flow = client.flow_from_clientsecrets(self.app_secrets, self.scope)
          flow.user_agent = self.app_name
          return tools.run_flow(flow, self.store)
docs: Gets new credentials
  
          :return: New user credentials file upon user prompt