TokenSource
Source of bearer tokens for a renewing auth flow.
Source of bearer tokens for a renewing auth flow.
Functions
funcget_cached_token() -> str | NoneReturn the cached bearer token.
Returns
str | NoneBearer token, or None when nothing usable is cached.
funcfetch_token() -> str | NoneFetch a fresh bearer token.
Returns
str | NoneBearer token, or None when the source cannot produce one.
funcclose() -> NoneClose any resources this source opened.
Returns
None