Client

class aiohttp_oauth2_client.client.OAuth2Client(grant: OAuth2Grant, **kwargs)[source]

Bases: ClientSession

The OAuth2Client is an aiohttp.ClientSession with support for OAuth2 access tokens.

Parameters:

grant (OAuth2Grant) – OAuth2Grant object providing an OAuth2 grant implementation.

async close() None[source]

Close underlying connector.

Release all acquired resources.

Return type:

None