Member-only story
Adding Firebase Authentication to PWA with Ionic 4, Angular and AngularFire.
Getting started with Firebase Authentication in Angular (Ionic is using Angular) with AngularFire.
My articles are open for everyone; non-member readers can read the article by clicking this Friend link.
AngularFireAuth.user
provides us an Observable<User|null>
to monitor our application's authentication State.
AngularFireAuth.auth
returns an initialized firebase.auth.Auth
instance, allowing us to log users in, out, etc. See the Firebase docs for more information on what methods are available.
The first step is to add Firebase to an Angular project
and then enable the Email/Password sign-in method under the Authentication section of the Firebase console.
#1 Adding Firebase to an Angular project
First of all, we need to set up Firebase configuration in our project by adding Firebase.
Follow the link to add Firebase — Click here 👇👇