Skip to main content

What it flags

hashSync, compareSync or genSaltSync from bcrypt or bcryptjs in an async function blocks the event loop for the whole hash.

How to review or fix

Use the promise form.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: