Integrating the Login dialog with Firebase

First of all, we need to store the Firebase configuration settings inside the project environment variables. Follow these steps to do so:

  1. Update the src/environments/environment.ts file with the Firebase configuration that you received earlier in this chapter when setting up the Firebase project:
      export const environment = {        production: false,        firebaseConfig: {          apiKey: 'AIzaSyDPgAiN7dFqjp17HVFRWT2QaChHx5oGeBo',          authDomain: 'electron-chat-app-df7eb.firebaseapp.com',          databaseURL: 'https://electron-chat-app-df7eb.firebaseio.com',          projectId: 'electron-chat-app-df7eb',          storageBucket: '',          messagingSenderId: '610931503152',          appId: '1:610931503152:web:f2ccc78969eb58a3'        }      };
Note that the actual values ...

Get Electron Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.