bcrypt.compare(guess, password, function(err, res) {
if(res) {
console.log(this.state.algo);
}
});
I can not do the console.log I'm running the app with expo, on the screen it returns Something went wrong.
bcrypt.compare(guess, password, function(err, res) {
if(res) {
console.log(this.state.algo);
}
});
I can not do the console.log I'm running the app with expo, on the screen it returns Something went wrong.
bcrypt.compare(guess, password, function(err, res) {
if(res) {
console.log(this.state.algo);
}
});
The problem was that I had to do an arrow function.
bcrypt.compare(guess, password,(err, res)=> {
if(res) {
console.log(this.state.algo);
}
});