# `Backplane.Oauth.AuthorizeResponse`
[🔗](https://github.com/gsmlg-opt/backplane/blob/v1.10.77/apps/backplane_oauth/lib/backplane/oauth/responses/authorize.ex#L1)

Response returned in case of authorization request success. Provides utilities and mandatory data needed to respond to the authorize part of implicit, code and hybrid flows.

# `t`

```elixir
@type t() :: %Backplane.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(),
  response_mode: String.t() | nil,
  state: String.t() | nil,
  token_type: String.t() | nil,
  type: :token | :code | :hybrid
}
```

# `from_tokens`

```elixir
@spec from_tokens(
  %{
    required(type :: :code | :token | :id_token) =&gt;
      token :: Backplane.Oauth.Token.t() | String.t()
  },
  request ::
    Backplane.Oauth.CodeRequest.t()
    | Backplane.Oauth.TokenRequest.t()
    | Backplane.Oauth.HybridRequest.t()
) :: t()
```

# `redirect_to_url`

```elixir
@spec redirect_to_url(t()) :: url :: String.t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
