# `Latch.Error.OAuth`

The authorization server returned an OAuth error response.

The `error` field contains the RFC 6749 error code.

## Common `error` values
  * `"access_denied"` - the user declined consent
  * `"invalid_grant"` - the code or refresh token is stale
  * `"invalid_client"` - client assertion rejected
  * `"invalid_request"` - malformed request to the server
  * `"expired_token"` - a DPoP nonce or token expired

# `t`

```elixir
@type t() :: %Latch.Error.OAuth{
  __exception__: term(),
  description: String.t() | nil,
  error: String.t(),
  error_uri: String.t() | nil
}
```

---

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