Files
sign/packages/lib/server-only/auth/hash.ts

11 lines
273 B
TypeScript
Raw Normal View History

2023-06-09 18:21:18 +10:00
import { hashSync as bcryptHashSync } from 'bcrypt';
import { SALT_ROUNDS } from '../../constants/auth';
/**
* @deprecated Use the methods built into `bcrypt` instead
*/
export const hashSync = (password: string) => {
return bcryptHashSync(password, SALT_ROUNDS);
};