# `PhoenixKitWeb.AuthRouter`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/phoenix_kit_web/auth_router.ex#L1)

Legacy authentication router for PhoenixKit.

**DEPRECATED**: This module is kept for backward compatibility.
Use `PhoenixKitWeb.Integration.phoenix_kit_routes/0` macro instead.

This router provides basic forwarding to authentication routes but lacks
the advanced features and proper pipeline configuration of the Integration module.

## Migration Path

Replace usage of this router with the Integration macro:

    # Instead of:
    forward "/auth", PhoenixKitWeb.AuthRouter

    # Use:
    import PhoenixKitWeb.Integration
    phoenix_kit_routes()

# `browser`

# `call`

Callback invoked by Plug on every request.

# `formatted_routes`

# `init`

Callback required by Plug that initializes the router
for serving web requests.

# `phoenix_kit_redirect_if_authenticated`

# `require_authenticated`

# `verified_route?`

---

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