# `Ltix.Errors.Invalid.ScopeMismatch`
[🔗](https://github.com/DecoyLex/ltix/blob/main/lib/ltix/errors/invalid/scope_mismatch.ex#L1)

Client lacks the required OAuth scope.

The following fields of this exception are public and can be accessed freely.

  * `:scopes` (list of `t:String.t/0`) - the scopes that would authorize the request, none of which the client was granted

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Invalid.ScopeMismatch{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  granted_scopes: term(),
  path: term(),
  scopes: term(),
  spec_ref: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Ltix.Errors.Invalid.ScopeMismatch` without raising it.

## Keys

- :scopes
- :granted_scopes
- :spec_ref

---

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