redditwarp.auth.token#

class redditwarp.auth.token.Token(access_token: str, token_type: str = 'Bearer', expires_in: int | None = None, refresh_token: str | None = None, scope: str | None = None, d: ~typing.Mapping[str, object] = <factory>)[source]#

Bases: Mapping[str, object]

OAuth2 token information.

access_token: str#
token_type: str = 'Bearer'#
expires_in: int | None = None#
refresh_token: str | None = None#
scope: str | None = None#
d: Mapping[str, object]#
static from_dict(d: Mapping[str, Any]) Token[source]#

Create an instance from OAuth2 token data.