Authorization
Abstract authorization contract used by Flet authentication workflows.
Implementations provide OAuth-style authorization URL/state generation, token exchange, token hydration from persisted storage, and token retrieval.
Methods
-
dehydrate_token–Restore token state from previously persisted token data.
-
get_authorization_data–Build authorization URL and state for starting auth flow.
-
get_token–Return the current token, refreshing it when needed.
-
request_token–Exchange authorization code for access/refresh token data.
Methods#
dehydrate_token
async
#
dehydrate_token(saved_token: str) -> None
Restore token state from previously persisted token data.
Parameters:
-
saved_token(str) –Serialized token payload.