Subscribe
Notify of
guest
13 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
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

to

$ 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)

Bradley

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 “value.email” on the authentication service to “value.email.trim()”

AbdulAzeez Olanrewaju

Thank you very much. how can we implement onAuthStateChanged() function, because when you refresh, the Your {{userEmail}} = undefined. but it is still logged in

Camila

Hi, thanks for the amazing tutorial. Saved my life ♥

oussama

great article thnak you

Umesh Bhosale

Where I find the registered email addresses and password?