Kitaru

StaticTokenAuth

Fixed bearer token that never renews.

Functions

func__init__(self, token) -> None

Initialize the auth flow.

paramself
paramtokenstr

Bearer token attached to every request.

Returns

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

Attach the fixed bearer token to the request.

paramself
paramrequesthttpx.Request

Outgoing HTTP request.

Returns

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

On this page