Files
infisical/backend/src/services/totp/totp-fns.ts
T

4 lines
146 B
TypeScript

import { crypto } from "@app/lib/crypto/cryptography";
export const generateRecoveryCode = () => String(crypto.randomInt(10 ** 7, 10 ** 8 - 1));