Skip to main content

Firebase Authentication

Firebase is used for phone-based authentication and for verifying client auth flows where applicable.

Setup checklist

  1. Create a Firebase project for Langwa.
  2. Enable Phone authentication (and any other sign-in providers you use).
  3. Generate a Firebase Admin SDK service account.
  4. Store the service account credentials in the backend secret store (do not commit to git).

Backend configuration

The backend should load Firebase Admin credentials from environment secrets at startup. Refer to the backend repo's .env template and config files for the exact variables and loading strategy.

Client configuration

  • Use Firebase client SDKs for phone OTP flows.
  • Ensure the client app uses the correct Firebase project configuration.