Firebase starter module
Authentication
Connects browser sign-in to server-verified sessions so protected pages do not rely on a browser check alone.
- Files
- 4
- Lines
- 235
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
src/checkout/account-model.ts
The trusted definition of this app's account model: roles, collections, and project checks.
TypeScript
67 lines
src/checkout/current-session.ts
Verifies the server session cookie used by every protected page and route.
TypeScript
58 lines
src/checkout/session-login-route.ts
Exchanges a verified Firebase ID token for a secure server session cookie.
TypeScript
75 lines
src/checkout/session-logout-route.ts
Clears the Firebase session cookie and returns the user to the sign-in page.
TypeScript
35 lines
Questions about authentication
Does it include Firebase authentication examples?
Yes. It covers the handoff between browser sign-in and server-verified sessions, including the checks that keep protected pages and data private.