payloadcms_otp_plugin
Version:
A comprehensive One-Time Password (OTP) authentication plugin for Payload CMS that enables secure passwordless authentication via SMS and email
62 lines (61 loc) • 1.99 kB
TypeScript
import type { NestedKeysStripped } from '@payloadcms/translations';
export declare const baseOtpTranslation: {
en: {
otp: {
expired_message: string;
otp_info: string;
resend: string;
sending: string;
submit: string;
wrong_otp_code: string;
failed_submitting_otp: string;
new_otp_sent: string;
session_ended: string;
failed_to_send_otp: string;
otp_sent_successfully: string;
};
api: {
mobile_or_email_required: string;
internal_server_error: string;
mobile_email_and_otp_required: string;
otp_config_retrieved: string;
otp_sent_successfully: string;
failed_to_send_otp: string;
invalid_or_expired_otp: string;
login_successful: string;
login_failed: string;
};
};
ar: {
otp: {
expired_message: string;
otp_info: string;
resend: string;
sending: string;
submit: string;
wrong_otp_code: string;
failed_submitting_otp: string;
new_otp_sent: string;
session_ended: string;
failed_to_send_otp: string;
otp_sent_successfully: string;
};
api: {
mobile_or_email_required: string;
internal_server_error: string;
mobile_email_and_otp_required: string;
otp_config_retrieved: string;
otp_sent_successfully: string;
failed_to_send_otp: string;
invalid_or_expired_otp: string;
login_successful: string;
login_failed: string;
};
};
};
export declare const otpTranslation: {
en: any;
ar: any;
};
export type OtpTranslationsObject = typeof otpTranslation.en;
export type OtpTranslationsKeys = NestedKeysStripped<OtpTranslationsObject>;