UNPKG

@jvddavid/authenticator

Version:

Biblioteca para geração e verificação de códigos TOTP (Google Authenticator, Microsoft Authenticator, etc.) em Node.js.

9 lines (6 loc) 486 B
import { VerifyResult } from 'notp'; declare function generateGoogleAuthKey(): string; declare function generateGoogleAuthToken(key: string): string; declare function verifyGoogleAuthToken(key: string, token: string): VerifyResult | null; declare function generateTotpUri(secret: string, accountName?: string, issuer?: string, algo?: string, digits?: number, period?: number): string; export { generateGoogleAuthKey, generateGoogleAuthToken, generateTotpUri, verifyGoogleAuthToken };