View Source Boruta.Oauth.TokenResponse (Boruta core v2.3.3)

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,
  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) =>
    token :: Boruta.Oauth.Token.t() | String.t()
}) ::
  t()