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

Code request

# `t`

```elixir
@type t() :: %Backplane.Oauth.CodeRequest{
  client_id: String.t(),
  code_challenge: String.t(),
  code_challenge_method: String.t(),
  grant_type: String.t(),
  nonce: String.t(),
  prompt: String.t(),
  redirect_uri: String.t(),
  resource_owner: struct(),
  response_type: term(),
  response_types: String.t(),
  scope: String.t(),
  state: String.t()
}
```

Type representing a code request as stated in [OAuth 2.0 RFC](https://tools.ietf.org/html/rfc6749#section-4.1.1).

Note : `resource_owner` is an addition that must be provided by the application layer.

# `require_nonce?`

```elixir
@spec require_nonce?(request :: t()) :: boolean()
```

---

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