Files
documenso/packages/lib/server-only/auth/hash.ts
2023-06-09 18:22:21 +10:00

11 lines
273 B
TypeScript

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);
};