Kaizen
Browse modulesAuthenticationauth/serverInterfaces

Interface: EmailOtpConfig

Defined in: server/auth/config.ts:39

Properties

enabled

enabled: boolean;

Defined in: server/auth/config.ts:40


sendOtp?

optional sendOtp?: (args: {
  email: string;
  otp: string;
  type: "sign-in" | "email-verification" | "forget-password" | "change-email";
}) => Promise<void>;

Defined in: server/auth/config.ts:41

Parameters

ParameterTypeDescription
args{ email: string; otp: string; type: "sign-in" | "email-verification" | "forget-password" | "change-email"; }-
args.emailstring-
args.otpstring-
args.type"sign-in" | "email-verification" | "forget-password" | "change-email"Mirrors Better Auth's own EmailOTPOptions.sendVerificationOTP union. "change-email" is emitted by POST /email-otp/change-email and MUST be declared here: create-auth forwards whatever Better Auth hands it, and remapping it to a neighbouring value would tell the consumer to send a "verify your email" template for what is actually an email CHANGE.

Returns

Promise<void>

On this page