Firebase Config and Initialization
To initialize Firebase in your app, you need to provide your app's Firebase configuration. TernSecure instance will initialize firebase by reading the env variables. Follow the steps to obtain your Firebase config object and set it in environment variables.
Obtain your Firebase config object
Follow this link to learn about firebase config object and obtaining them.
We recommend storing your app's Firebase project configuration in environment variables. TernSecure instances will read these env vars and handle Firebase initialization for you.
# Firebase Client SDK Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your-api-key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-auth-domain
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-storage-bucket
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id
NEXT_PUBLIC_FIREBASE_APP_ID=your-app-id# Firebase Admin SDK Configuration
FIREBASE_PROJECT_ID=your-project-id
FIREBASE_CLIENT_EMAIL=your-firebase-service-account-client-email
FIREBASE_PRIVATE_KEY=your-firebase-service-account-private-keyAfter setting up your credentials, it is critical to configure your authorized domains.
Last updated on