ArchAstro.Types.DeviceAuthorizationResponse (archastro v0.2.0)

Copy Markdown

The initial response from an OAuth 2.0 Device Authorization Grant request, containing the codes and URIs needed to complete device authentication.

Summary

Types

t()

@type t() :: %ArchAstro.Types.DeviceAuthorizationResponse{
  device_code: String.t(),
  expires_in: integer(),
  interval: integer(),
  user_code: String.t(),
  verification_uri: String.t(),
  verification_uri_complete: String.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()