Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
lib/pinHashing.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
const bc = require('bcryptjs');

const hashPin = (PIN) => bc.hashSync(PIN, process.env.BCRYPT_ROUNDS || 6);

module.exports = { hashPin };