splatnet3_scraper.auth.TokenManager.add_token(token, name=None, timestamp=None)

Adds a token to the keychain. If the token is a string, the name of the token must be provided. If the token is a Token object, the name of the token will be used. If the token already exists, it will overwrite the existing token.

Parameters:
token : str | Token

The token to add to the keychain.

name : str | None, optional

The name of the token. Only required if the token is a string. Defaults to None.

timestamp : float | None, optional

The timestamp of the token. Defaults to None.

Raises:

ValueError – If the token is a string and the name of the token is not provided.