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

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.

Link to this section Summary

Link to this section 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_type: String.t()
}

Link to this section Functions

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