Boruta.Oauth.TokenResponse (Boruta core v2.0.0-rc.1) View Source

Token response

Link to this section Summary

Link to this section Types

Specs

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

Specs

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