bcrypt compare fails code example
Example: bcrypt compare
import bcrypt from 'bcryptjs'
export const matchPassword = async (enteredpassword, oldPassword) => {
return await bcrypt.compare(enteredpassword, oldPassword)
}
import bcrypt from 'bcryptjs'
export const matchPassword = async (enteredpassword, oldPassword) => {
return await bcrypt.compare(enteredpassword, oldPassword)
}