react-native-nitro-totp
Version:
React Native module for TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password) authentication.
20 lines • 675 B
TypeScript
import { SupportedAlgorithm, SecretSize } from './types';
export declare const NitroTotpConstants: {
readonly DEFAULT_DIGITS: 6;
readonly DEFAULT_PERIOD: 30;
readonly DEFAULT_SECRET_SIZE: SecretSize.STANDARD;
readonly DEFAULT_WINDOW: 1;
readonly DEFAULT_COUNTER: 0;
readonly DEFAULT_ALGORITHM: SupportedAlgorithm.SHA1;
};
export declare const SecretSizeBytes: Record<SecretSize, number>;
export declare const defaultOptions: {
readonly issuer: "";
readonly label: "OTP Auth";
readonly size: number;
readonly digits: 6;
readonly period: 30;
readonly counter: 0;
readonly window: 1;
};
//# sourceMappingURL=constants.d.ts.map