OAuthToken
OAuth token payload used by Flet authentication flows.
Stores access/refresh token fields and expiry metadata returned by OAuth token endpoints.
Properties
-
access_token– -
expires_at– -
expires_in– -
refresh_token– -
scope– -
token_type–
Methods
-
from_json–Deserializes a token from JSON.
-
to_json–Serializes this token to a compact JSON string.
Properties#
Methods#
from_json
staticmethod
#
from_json(data: str) -> OAuthToken
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().