Verifies a candidate password against a stored scrypt hash. Uses the async scrypt API so a login attempt never blocks the Fastify event loop.
Candidate plaintext password.
Previously stored scrypt$salt$hash value.
scrypt$salt$hash
Promise resolving true when the candidate matches the stored hash.
Verifies a candidate password against a stored scrypt hash. Uses the async scrypt API so a login attempt never blocks the Fastify event loop.