diff --git a/src/common/auth/constants/index.ts b/src/common/auth/constants/index.ts new file mode 100644 index 0000000..2d76186 --- /dev/null +++ b/src/common/auth/constants/index.ts @@ -0,0 +1,8 @@ +export { + CURRENT_ALGORITHM, + CURRENT_VERSION, + KEY_LENGTH, + KEY_LENGTH_FOR_OTP, + SCRYPT_PARAMS, + SCRYPT_PARAMS_FOR_OTP, +} from "./hash.constants"; diff --git a/src/common/auth/types/password.types.ts b/src/common/auth/types/password.types.ts new file mode 100644 index 0000000..f3972d3 --- /dev/null +++ b/src/common/auth/types/password.types.ts @@ -0,0 +1,8 @@ +export interface PasswordHash { + hash: string; + salt: string; + algorithm: string; + version: number; + params: Record; + createdAt: Date; +}