mirror of
https://github.com/documenso/documenso
synced 2026-05-22 16:38:52 +00:00
10 lines
273 B
TypeScript
10 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);
|
|
};
|