| 123456789101112131415161718 |
- export interface ToTpGeneratorOptions {
- digits?: number;
- period?: number;
- algorithm?: "SHA-1" | "SHA-256" | "SHA-512";
- label?: string;
- secretLength?: number;
- issuer: string;
- }
- export interface ToTpSecretAndUrl {
- url: string;
- secret: string;
- }
- export declare class TotpChecker {
- static ValidateTotp(_totpSecret: string, _code: string): Promise<boolean>;
- static EncodeBase32(input: Buffer): string;
- static GenerateCode(optionsOrIssuer: ToTpGeneratorOptions | string): ToTpSecretAndUrl;
- }
- //# sourceMappingURL=totpChecker.d.ts.map
|