Public front door
Keep the homepage indexable, shareable, and accessible to every visitor.
The marketing site stays open for campaigns, search engines, and referrals. Authentication only appears when someone moves into the protected product area.
A clean separation between your marketing site and authenticated product. Visitors browse freely, users sign in with a magic link, routes stay protected.
Public
/
Marketing and landing. Open to everyone.
Protected
/app
Authenticated product. Magic-link access only.
How it works
Public front door
The marketing site stays open for campaigns, search engines, and referrals. Authentication only appears when someone moves into the protected product area.
Protected product
Auth middleware guards the product route tree and redirects guests to sign in before any protected content renders.
No passwords to manage. Users receive a sign-in link by email and land directly in the product.
Auth checks apply to the entire /app tree. Public pages stay open by default without per-page gating.
Marketing and product routes are structurally separated, so each surface can evolve without coupling.
The flow
No account creation form. No password. Just an email and a protected route tree.
01
Visitors arrive at the public marketing page. No sign-in is required to browse the landing experience.
02
Click sign in, enter an email, and request a one-time link. There is no password form in the path.
03
The magic link authenticates the session and redirects into /app, where dashboards and internal workflows live.
Fork the repo, deploy, and have a working authenticated app in minutes.