Boruta.Oauth.TokenResponse (Boruta core v3.0.0-beta.4)
View SourceResponse 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, agent_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 | :agent_token | :preauthorized_token) => token :: Boruta.Oauth.Token.t() | String.t() }) :: t()