App shell starter module
Sign-in seam
Working demo sign-in with server-verified sessions, ready to swap for the auth pack you choose.
- Files
- 7
- Lines
- 238
- Languages
- TypeScript + Markdown
Included files
This page lists paths and purposes, not source contents.
src/checkout/demo-session.ts
Signs and verifies the temporary session cookie used while the app has no auth provider.
TypeScript
84 lines
src/checkout/ensure-provisioned.ts
Creates the app account on first sign-in and attempts its one welcome message.
TypeScript
30 lines
src/checkout/PROVIDERS.md
The auth seam is `getSessionUser` plus `SESSION_PROVIDER` in `session-user.ts`.
Markdown
20 lines
src/checkout/require-user.ts
Redirects signed-out visitors before a protected server page does any work.
TypeScript
16 lines
src/checkout/session-user.ts
Turns the active server-verified session into the user shape every page reads.
TypeScript
33 lines
src/checkout/signin-route.ts
Handles the temporary name-only sign-in form used before an auth pack is wired.
TypeScript
42 lines
src/checkout/signout-route.ts
Signs out the demo user by expiring the temporary session cookie.
TypeScript
13 lines