code: def login(self, access_token=""):
          
          if access_token:
              credentials = argparse.Namespace(token=access_token, refresh_token=None, id_token=None)
          else:
              scopes = ["openid", "email", "offline_access"]
  
              from google_auth_oauthlib.flow import InstalledAppFlow
              flow = InstalledAppFlow.from_client_config(self.application_secrets, scopes=scopes)
              msg = "Authentication successful. Please close this tab and run HCA CLI commands in the terminal."
              credentials = flow.run_local_server(success_message=msg, audience=self._audience)
  
          # TODO: (akislyuk) test token autorefresh on expiration
          self.config.oauth2_token = dict(access_token=credentials.token,
                                          refresh_token=credentials.refresh_token,
                                          id_token=credentials.id_token,
                                          expires_at="-1",
                                          token_type="Bearer")
          print("Storing access credentials")
docs: Configure and save {prog} authentication credentials.
  
          This command may open a browser window to ask for your
          consent to use web service authentication credentials.