# `AshAuthentication.Strategy.Oidc.NonceGenerator`
[🔗](https://github.com/team-alembic/ash_authentication/blob/main/lib/ash_authentication/strategies/oidc/nonce_generator.ex#L5)

An implmentation of `AshAuthentication.Secret` that generates nonces for
OpenID Connect strategies.

Defaults to `16` bytes of random data.  You can change this by setting the
`byte_size` option in your DSL:

```elixir
oidc do
  nonce {AshAuthentication.NonceGenerator, byte_size: 32}
  # ...
end
```

---

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