iqm.iqm_client.cli.cli.save_tokens_file

iqm.iqm_client.cli.cli.save_tokens_file#

iqm.iqm_client.cli.cli.save_tokens_file(path: str, tokens: dict[str, str], auth_server_url: str) None#

Saves tokens as JSON file at given path.

Parameters:
  • path (str) – path to the file to write

  • tokens (dict[str, str]) – authorization access and refresh tokens

  • auth_server_url (str) – base url of the authorization server

Raises:

OSError – if writing to file fails

Return type:

None