react-native-nitro-totp
Version:
React Native module for TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password) authentication.
10 lines • 446 B
TypeScript
import type { HybridObject } from 'react-native-nitro-modules';
import type { NitroHotpGenerateOptions, NitroHotpValidateOptions } from '../types';
export interface NitroHotp extends HybridObject<{
ios: 'c++';
android: 'c++';
}> {
generate(secret: string, options: NitroHotpGenerateOptions): string;
validate(secret: string, otp: string, options: NitroHotpValidateOptions): boolean;
}
//# sourceMappingURL=NitroHotp.nitro.d.ts.map