payloadcms_otp_plugin
Version:
A comprehensive One-Time Password (OTP) authentication plugin for Payload CMS that enables secure passwordless authentication via SMS and email
20 lines (19 loc) • 530 B
TypeScript
export declare function resetToken(): Promise<string | undefined>;
export declare function sendOtp(): Promise<{
success: boolean;
message: string;
}>;
export declare function submitOtp(code: string): Promise<{
success: boolean;
message: string;
token?: string;
}>;
export declare function resendOtp(): Promise<{
success: boolean;
message: string;
}>;
export interface OtpConfig {
otpLength: number;
expiredTime: number;
}
export declare function getOtpConfig(): Promise<OtpConfig | undefined>;