splatnet3_scraper.auth.TokenManager.flag_origin(origin, data=None)

Flags the origin of the token manager. This is used to identify where the token manager was loaded from, if anywhere. This is used to help keep track of whether the user wants to save the tokens to disk or not, but can potentially be used for other things in the future. This is called automatically when the token manager is loaded from a config file or environment variables. Subsequent calls to this method will overwrite the previous origin.

Parameters:
origin : ORIGIN

The origin of the token manager. One of “memory”, “env”, or “file”.

data : str | None

Additional data about the origin. For example, if the token manager was loaded from a config file, this would be the path to the config file. On the other hand, if the token manager was loaded from environment variables, this would be None.