# `Teac.OAuth.TokenInfo`
[🔗](https://codeberg.org/FullStacking/teac)

The result of validating an OAuth token via `Teac.OAuth.validate_token/1`.

Contains the scopes currently granted to the token, which is the basis
for incremental authorization — detecting which scopes are missing before
sending the user through another OAuth consent flow.

# `t`

```elixir
@type t() :: %Teac.OAuth.TokenInfo{
  client_id: String.t(),
  expires_in: non_neg_integer(),
  login: String.t() | nil,
  scopes: [String.t()],
  user_id: String.t() | nil
}
```

---

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