View Source Boruta.Oauth.TokenResponse (Boruta ssi core v0.1.0-beta.1)

Response returned in case of access token request success. Provides utilities and mandatory data needed to respond to the token part of client credentials, resource owner password, code and hybrid flows.

Summary

Types

@type t() :: %Boruta.Oauth.TokenResponse{
  access_token: String.t() | nil,
  authorization_details: map() | nil,
  c_nonce: String.t() | nil,
  expires_in: integer() | nil,
  id_token: String.t() | nil,
  refresh_token: String.t() | nil,
  token: Boruta.Oauth.Token.t(),
  token_type: String.t()
}

Functions

@spec from_token(%{
  required(type :: :token | :id_token | :preauthorized_token) =>
    token :: Boruta.Oauth.Token.t() | String.t()
}) :: t()