ArchAstro.Types.OAuthTokenResponse (archastro v0.2.0)

Copy Markdown

A successful OAuth 2.0 token response. Issued by the token endpoint after a completed authorization or device-flow grant.

Summary

Types

t()

@type t() :: %ArchAstro.Types.OAuthTokenResponse{
  access_token: String.t(),
  expires_in: integer(),
  refresh_token: String.t() | ArchAstro.Unset.t(),
  scope: String.t() | ArchAstro.Unset.t(),
  token_type: String.t(),
  user: ArchAstro.Types.User.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()