Trying to compare password hash stored in custom database to password entered by the user using crypto.scryptSync and i get error: “crypto.scryptSync is not a function”.
according to documentation i should be able to create a hash using: const key1 = crypto.scryptSync(‘myPassword’, ‘salt’, 64);
But that doesn’t work.