Skip to main content

OAuthToken

OAuth token payload used by Flet authentication flows.

Stores access/refresh token fields and expiry metadata returned by OAuth token endpoints.

Properties

Methods

  • from_json - Deserializes a token from JSON.
  • to_json - Serializes this token to a compact JSON string.

Properties​

access_tokeninstance-attribute​

expires_atinstance-attribute​

expires_ininstance-attribute​

refresh_tokeninstance-attribute​

scopeinstance-attribute​

token_typeinstance-attribute​

Methods​

from_jsonstaticmethod​

from_json(data: str) -> OAuthToken

Deserializes a token from JSON.

Parameters:

  • data (str) - JSON produced by to_json.

Returns:

to_json​

to_json() -> str

Serializes this token to a compact JSON string.

Returns:

  • str - JSON representation suitable for persistence and later hydration via from_json.