Is there a secure way to make the app remember the user's credentials (email and password) so he/she doesn't need to log in every time he/she enters the app (like Facebook does)?
I tried storing data on the localStorage:
const password = this.state.password
const hashedPassword = bcrypt.hashSync(password, salt)
localStorage.setItem('pasd', JSON.stringify(hashedPassword))
but I wonder if there is a more secure way to store them.