# `Rivet.Auth.Token.Validation`
[🔗](https://github.com/srevenant/rivet-ident/blob/main/lib/auth/token/validation.ex#L1)

# `jwt`

```elixir
@spec jwt(
  target :: Rivet.Ident.User.t() | Rivet.Ident.Factor.t(),
  hostname :: String.t(),
  scope :: map(),
  testing_only_expiration_offset :: nil | integer()
) ::
  {:ok, token :: String.t(), claims :: map(), Rivet.Ident.Factor.t()}
  | {:error, String.t()}
```

# `key`

```elixir
@spec key(hostname :: String.t(), Rivet.Ident.User.t()) ::
  {:ok, map()} | {:error, String.t(), any()}
```

---

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