6 lines
143 B
TypeScript
6 lines
143 B
TypeScript
import bcrypt from 'bcryptjs';
|
|
|
|
export const hashPassword = (password: string, salt: string) => {
|
|
return bcrypt.hashSync(password, salt);
|
|
};
|