Skip to main content
function verifySmsOTP(options: VerifySmsOTPOptions): Promise<VerifySmsOTPResult>;
Verifies the one-time password (OTP) for the sign in flow with a phone number via SMS.

Parameters

ParameterTypeDescription
optionsVerifySmsOTPOptionsThe options for the verification.

Returns

Promise<VerifySmsOTPResult> The result of the verification.

Example

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