Authentication and User Session


#1

Hello! I need to develop a Basic Authentication in Ionic 3. I have a table with the users and passwords on MySQL. When the login is successful, I want to storage the user in the “user session” Some suggestion?

Regards

Emiliano


#2

Please do not store cleartext passwords anywhere. Use bcrypt instead. As for “user session”, I highly recommend using JWT.


#3

Ok. Thanks. I will research about JWT.

Regards
Emiliano


#4

Any example about bcrypt and Ionic?