1import { createHash } from "crypto";23export const CODE_TTL_MINUTES = 10;4export const MAX_ATTEMPTS = 5;56export function hashCode(code: string, salt: string): string {7 return createHash("sha256").update(`${salt}:${code}`).digest("hex");8}9