How to use the bcrypt.getRounds function in bcrypt

To help you get started, we’ve selected a few bcrypt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Battochon / passwordless-postgrestore / test / postgrestore.js View on Github external
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();
				})
			});