Skip to content

AccessTokenProvider

Type: warmhub.AccessTokenProvider

AccessTokenProvider = str | Callable[[], 'str | Awaitable[str | None] | None']

A static token, or a sync/async callable returning one.

The async client accepts both. The sync client accepts only the synchronous form and raises a named error on an awaitable, rather than blocking a thread on someone else’s event loop.