TokenCredentialsFromEnvVar.

token_from_env_var

token_from_env_var( env_var_name: str, base64_encode: bool ) -> str

Retrieves a token from an environment variable.

Parameters

nametypedescription
env_var_namestrThe name of the environment variable containing the token.
base64_encodeboolWhether to base64 encode the token. Defaults to True for backwards compatibility.

Returns

typedescription
strThe token, optionally base64 encoded.