UNPKG

react-native-nitro-totp

Version:

React Native module for TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password) authentication.

18 lines (17 loc) 583 B
export declare enum NitroTotpConstants { DEFAULT_DIGITS = 6, DEFAULT_PERIOD = 30, DEFAULT_SECRET_SIZE = 12, DEFAULT_WINDOW = 1, DEFAULT_COUNTER = 0, DEFAULT_ALGORITHM = 0 } export declare const defaultOptions: { readonly issuer: ""; readonly label: "OTP Auth"; readonly length: NitroTotpConstants.DEFAULT_SECRET_SIZE; readonly digits: NitroTotpConstants.DEFAULT_DIGITS; readonly period: NitroTotpConstants.DEFAULT_PERIOD; readonly counter: NitroTotpConstants.DEFAULT_COUNTER; readonly window: NitroTotpConstants.DEFAULT_WINDOW; };