forked from Yara724/api
Added common utils
This commit is contained in:
8
src/common/auth/constants/index.ts
Normal file
8
src/common/auth/constants/index.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export {
|
||||||
|
CURRENT_ALGORITHM,
|
||||||
|
CURRENT_VERSION,
|
||||||
|
KEY_LENGTH,
|
||||||
|
KEY_LENGTH_FOR_OTP,
|
||||||
|
SCRYPT_PARAMS,
|
||||||
|
SCRYPT_PARAMS_FOR_OTP,
|
||||||
|
} from "./hash.constants";
|
||||||
8
src/common/auth/types/password.types.ts
Normal file
8
src/common/auth/types/password.types.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
export interface PasswordHash {
|
||||||
|
hash: string;
|
||||||
|
salt: string;
|
||||||
|
algorithm: string;
|
||||||
|
version: number;
|
||||||
|
params: Record<string, unknown>;
|
||||||
|
createdAt: Date;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user