# `AshMultiAccount.Phoenix.Plug`
[🔗](https://github.com/chriscox/ash_multi_account/blob/v0.1.1/lib/ash_multi_account/phoenix/plug.ex#L1)

A plug that ensures a `"session_token"` UUID exists in the session.

The session token is used by the multi-account linking flow. Adding this
plug ensures a token exists before the user reaches any multi-account
routes, avoiding fallback token generation in the controller.

    plug AshMultiAccount.Phoenix.Plug

---

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