# `Assent.Strategy.OAuth2.UnsupportedTokenTypeError`
[🔗](https://github.com/pow-auth/assent/blob/v0.4.0/lib/assent/strategies/oauth2.ex#L128)

An exception for when an OAuth2 token type is unsupported.

## Fields

  * `:type` - the token type

## Examples

    iex> error = Assent.Strategy.OAuth2.UnsupportedTokenTypeError.exception(type: "mac")
    iex> Exception.message(error)
    "unsupported authorization token type, got: \"mac\""

# `t`

```elixir
@type t() :: %Assent.Strategy.OAuth2.UnsupportedTokenTypeError{
  __exception__: term(),
  type: term()
}
```

# `message`

---

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