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