Kitaru

TokenSource

Source of bearer tokens for a renewing auth flow.

Functions

funcget_cached_token(self) -> str | None

Return the cached bearer token.

paramself

Returns

str | None

Bearer token, or None when nothing usable is cached.

funcfetch_token(self) -> str | None

Fetch a fresh bearer token.

paramself

Returns

str | None

Bearer token, or None when the source cannot produce one.

funcclose(self) -> None

Close any resources this source opened.

paramself

Returns

None

On this page