onetime-sdk
Version:
A secure SDK for sending and verifying OTPs via email and SMS.
9 lines (8 loc) • 375 B
TypeScript
import type { OneTimeClientConfig, SendOTPResult, OTPVerificationResult } from './types';
export declare class OneTimeClient {
private config;
constructor(config: OneTimeClientConfig);
sendOTP(identifier: string, via: 'email' | 'sms'): Promise<SendOTPResult>;
verifyOTP(identifier: string, otp: string): OTPVerificationResult;
}
export default OneTimeClient;