Skip to main content

Authentication

  • Firebase Auth initialized in apps/web/src/lib/firebase.js with local persistence.
  • Context: apps/web/src/context/AuthContext.js provides user/session to the app.
  • Middleware: apps/web/middleware.js handles public vs protected routes using an auth token cookie (firebase-token).
  • HOC: apps/web/src/components/auth/withAuth.js for client-side route protection.
  • Cookie: AuthContext writes firebase-token via getIdToken() for SSR/middleware checks.