Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pgClient.query('SELECT token FROM passwordless WHERE uid=$1', [user], function (err, obj) {
expect(err).to.not.exist;
expect(obj).to.exist;
expect(obj.rows[0].token).to.exist;
expect(bcrypt.getRounds(obj.rows[0].token)).to.equal(5);
done();
})
});