# `Monitorex.Authentication`

Phoenix LiveView `on_mount` hook for the Monitorex dashboard.

Reads the current user from the session (placed there by a Plug that calls
`resolve_user/1`), calls `resolve_access/1` on the configured resolver, and
enforces the returned access level.

## Configuration

    config :monitorex, :resolver, MyApp.MonitorexResolver

If no resolver is configured, a default that grants `:all` access is used.

---

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