Skip to main content
function verifyEmailOTP(options: VerifyEmailOTPOptions): Promise<VerifyEmailOTPResult>;
Verifies the one-time password (OTP) for the sign in flow with an email.

Parameters

ParameterTypeDescription
optionsVerifyEmailOTPOptionsThe options for the verification.

Returns

Promise<VerifyEmailOTPResult> The result of the verification.

Example

const result = await verifyEmailOTP({
  flowId: "flow-id-from-signInWithEmail",
  otp: "123456" // The OTP received in email
});
I