WebJs Gallery
← Gallery

Auth

Password login on createAuth, a signed session cookie, and a protected /features/auth/dashboard that redirects anonymous visitors to login.

You are signed out. Visiting the dashboard bounces you to login.

Log inCreate an account

The gate is app/features/auth/dashboard/middleware.ts calling auth(req); the login form posts to the app/api/auth/[...path] handler; OAuth (GitHub / Google) activates once you set the matching env vars.