Skip to content

Error: Illegal arguments: number, string #7

@yddo

Description

@yddo

im having trouble with the comparePassword function,
i try to authenticate via Post and I get a error

Im using the latest npm package

module.exports.comparePassword = function(candidatePassword, hash, callback){ bcrypt.compare(candidatePassword, hash, (err, isMatch) => { if(err) throw err; callback(null, isMatch); }); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions