Sign-in and sign-up pages: sign in with a username and password, watch the password's strength as you type and create an account; error and success states come ready.
The sign-in form comes filled in with DummyJSON's demo account emilys / emilyspass: press Sign in. Both forms send DummyJSON a real request. Do not type a real password when you sign up: DummyJSON keeps no new account, and the session stays only on this page, in memory.
PASSWORD_POLICY works on your server.localStorage. The forms post, so the password never lands in the URL..env.local, set your API's address in NEXT_PUBLIC_API_URL (Next.js) or VITE_API_URL (TanStack Start), and its paths in LOGIN_PATH and REGISTER_PATH. Let an httpOnly cookie from your API carry the session: call it in get-session.api.ts and logout, then delete DEMO_ACCOUNT and start LoginForm with empty values. Guarding your private pages is your routes' job.npx virastack add auth brings sign-in at /login and sign-up at /register, and stops if your project already has a route there; --no-pages installs the feature alone. Change it freely, or remove it with npx virastack remove auth.