mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
wip: refresh design
This commit is contained in:
10
packages/lib/server-only/auth/hash.ts
Normal file
10
packages/lib/server-only/auth/hash.ts
Normal file
@ -0,0 +1,10 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user