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

Authorize response

Link to this section Summary

Link to this section Types

Specs

t() :: %Boruta.Oauth.AuthorizeResponse{
  access_token: String.t() | nil,
  code: String.t() | nil,
  code_challenge: String.t() | nil,
  code_challenge_method: String.t() | nil,
  expires_in: integer(),
  id_token: String.t() | nil,
  redirect_uri: String.t(),
  state: String.t() | nil,
  token_type: String.t() | nil,
  type: :token | :code | :hybrid
}

Link to this section Functions

Specs

from_tokens(%{
  required(type :: :code | :token | :id_token) =>
    token :: Boruta.Oauth.Token.t() | String.t()
}) :: t()
Link to this function

redirect_to_url(response)

View Source

Specs

redirect_to_url(t()) :: url :: String.t()