ArchAstro. SDK. Types. AuthTokens
(archastro v0.3.3)
Copy Markdown
Credential bundle returned after a successful authentication exchange. Contains the access token, refresh token, and the authenticated user.
Summary
Types
@type t() :: %ArchAstro.SDK.Types.AuthTokens{ expires_in: integer(), metadata: %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(), refresh_token: String.t(), token: String.t(), token_type: String.t(), user: ArchAstro.SDK.Types.User.t() }
Functions
@spec from_map(ArchAstro.SDK.JSON.object()) :: t()
@spec matches?(ArchAstro.SDK.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.SDK.JSON.object()