Notify of
Inline Feedbacks
View all comments

[…] Ionic 5|4 Firebase Authentication using Email & Password … […]

[…] Conclusion: We discussed on how we can integrate Firebase service in Ionic Angular application. We used the Firestore to perform CRUD operation using NoSQL real-time database service to create a Students register here. You can use any service in a similar way like Authentication of users by Email and Password. […]


Thank you for a very helpful tutorial.
I also had to update authentication.service.ts by changing all lines with afAuth from afAuth to afAuth.auth.

Amit Shirasao

Thx. It was very helpful.

Matthew Harris

Another great tutorial. One small tweak: change the generate service command from:

$ ionic g service services/authentication


$ ionic g service services/authenticate

So it matches up with the AuthenticateService name you use for the rest of the tutorial.

(There is also one mention of the original file path right after the generate command)


I would make a small change to allow for trailing whitespace in the email which is often inserted automatically by the phone keyboard.
Change the email REGEX in the login and register page to:
Validators.pattern(‘^[a-zA-Z0-9_.+-][email protected][a-zA-Z0-9-]+.[a-zA-Z0-9-.]+\\s*$’)
Then change the “” on the authentication service to “”