Firebase Setup
Set up Firebase authentication for your DevOur project.
Create a Firebase Project
- Go to the Firebase Console
- Click Add project
- Enter a project name and click Create project
Register a Web App
- In your Firebase project, click the Web icon (
</>) - Enter an app nickname
- Click Register app
- Copy the configuration values shown:
const firebaseConfig = {
apiKey: 'AIzaSy...',
authDomain: 'your-project.firebaseapp.com',
projectId: 'your-project',
storageBucket: 'your-project.appspot.com',
messagingSenderId: '123456789',
appId: '1:123456789:web:abc123'
}
Enable Authentication
- In Firebase Console, go to Build > Authentication
- Click Get started
- Enable Email/Password authentication
- Optionally enable Google or other providers
Generate Service Account File
The server needs a service account to verify tokens:
- In Firebase Console, click the gear icon > Project settings
- Go to Service accounts tab
- Click Generate new private key
- Save the JSON file securely
Never share this file or commit it to version control.
Configure in DevOur
Add your Firebase credentials in the DevOur web app:
- Open your project in DevOur
- Go to Settings and open the Integrations tab
- Expand the Firebase section and enter:
- API Key
- Auth Domain
- Project ID
- Storage Bucket
- Messaging Sender ID
- App ID
- Measurement ID (optional)
- Upload your service account JSON file
- Click Save
For more details on available settings, see Project Settings.
Turn On Passwordless Sign-In (Optional)
Let people sign in to your platform with a link sent to their email instead of a password:
- Upload your service account file first. DevOur uses it to change the sign-in methods of your Firebase project.
- In your project's Settings, turn on Passwordless sign-in in the
Firebase section. From the CLI, set
passwordlessSignIn: truein your config and rundevour setup.
DevOur turns on email link sign-in in your Firebase project for you. If it reports that it could not change the sign-in methods, check the service account file you uploaded and try again.
Authorize Your Domains
Firebase only allows Google sign-in and email sign-in links from the domains on its authorized list:
- In the Firebase Console, go to Authentication > Settings
- Under Authorized domains, click Add domain
- Enter the domain your platform runs on, such as
app.example.com
Add localhost as well to sign in while running your platform on your own
machine. Firebase projects created after April 28, 2025 don't include it by
default.
Set Up Firestore (Optional)
If your application uses Firestore:
- Go to Build > Firestore Database
- Click Create database
- Choose a location and security mode
- Configure security rules as needed
Verify Setup
After downloading and running your project bundle, check the browser console for Firebase errors. The server logs should show successful Firebase initialization.