# `Kinde.ObtainingTokenError`
[🔗](https://github.com/starfish-codes/elixir-kinde/blob/v2.1.0/lib/kinde/obtaining_token_error.ex#L1)

Returned when the `/oauth2/token` request fails.

Contains the HTTP `status` code and the response `body` (either a parsed
map with `"error"` / `"error_description"` keys, or a raw binary).

# `t`

```elixir
@type t() :: %Kinde.ObtainingTokenError{
  __exception__: true,
  body: map() | binary(),
  status: Mint.Types.status()
}
```

---

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