TypeAlias.AuthSendOtpArgs
type AuthSendOtpArgs =
| {
emailInputName: string;
type: typeof EmailOtp;
}
| {
phoneCallingCode: string;
phoneInputName: string;
type: typeof PhoneOtp;
};
Arguments for sending a One-Time Password (OTP).
Examples
// Email OTP
const args: AuthSendOtpArgs = {
type: AuthMethod.EmailOtp,
emailInputName: "email",
};
// Phone/SMS OTP
const args: AuthSendOtpArgs = {
type: AuthMethod.PhoneOtp,
phoneCallingCode: "+33",
phoneInputName: "phone",
};