Skip to content

TokenProvider

Part of Configuration & authentication in the Python API reference.

Related guidance: getting-started/configuration, getting-started/authentication, security/credentials.

Runnable examples: preflight.py.

from picogrid_ecn_client import TokenProvider

A cooperative asynchronous callable that supplies the current bearer token.

TokenProvider = Callable[[], Coroutine[Any, Any, str]]

Source · auth.py

Version 0.2.0 · branch main