naystack - v1.5.10
    Preparing search index...

    Function verifyUser

    • Verifies a plain password against the user's stored bcrypt hash.

      Parameters

      • user: UserOutput

        User object with password hash.

      • password: string

        Plain-text password to verify.

      Returns false | Promise<boolean>

      true if the password matches, false otherwise.