StaticTokenAuth

Fixed bearer token that never renews.

Fixed bearer token that never renews.

Functions

constructor__init__(token) -> None

Initialize the auth flow.

paramtokenstr

Bearer token attached to every request.

Returns

None
funcasync_auth_flow(request) -> AsyncGenerator[httpx.Request, httpx.Response]

Attach the fixed bearer token to the request.

paramrequesthttpx.Request

Outgoing HTTP request.

Returns

collections.abc.AsyncGenerator[httpx.httpx.Request, httpx.httpx.Response]

On this page