How to connect the Firebase authentication API to a web application

In order to connect your application to the Firebase authentication API, you should start by creating a Firebase application instance:

let config = {
  apiKey: 'YourAPIKey',
  databaseURL: 'YourDBURL',
  authDomain: 'YourAuthDomain'
}
let app = firebase.initializeApp(config)

You can find the necessary keys and URLs in the popup that opens if you click on the Web Setup button:

How to connect the Firebase authentication API to a web application

The setup config to use Firebase in a web application

Now you can use the app instance to access the auth() object and its methods. Check out the official Firebase documentation regarding the authentication API: https://firebase.google.com/docs/auth/users ...

Get Vue.js 2 and Bootstrap 4 Web Development 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.