UNPKG

@colingreybosh/otp-lib

Version:

A TypeScript library for generating, validating, and managing one-time passwords (OTP) for authentication purposes.

7 lines 469 B
export type { HOTPConfig, OTPAlgorithm, OTPConfig, OTPResult, TOTPConfig, ValidationResult, } from './types'; export { OTPException } from './types'; export { TOTP } from './lib/totp'; export { getSecretLength, validateAlgorithm, validateCounter, validateDigits, validatePeriod, validateSecret, validateToken, } from './utils/validation'; export { generateSecret } from './utils/crypto'; export { TOTP as default } from './lib/totp'; //# sourceMappingURL=index.d.ts.map