ArchAstro. Types. AuthTokens
(archastro v0.2.0)
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.Types.AuthTokens{ expires_in: integer(), metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), refresh_token: String.t(), token: String.t(), token_type: String.t(), user: ArchAstro.Types.User.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()