resendVerificationCodeEmail( )


Resends a one-time password (OTP) for email verification.

Important:

This function is in Developer Preview and is subject to change.

The resendVerificationCodeEmail() function returns a Promise that resolves when the email is successfully sent, or rejects with an error if the operation fails.

Method Declaration
Copy
function resendVerificationCodeEmail(): Promise<void>;
Request
This method does not take any parameters
Email a member with a link to verify their email
JavaScript
import { authentication } from "wix-members-frontend"; authentication .resendVerificationCodeEmail() .then(() => { console.log("Verification code email resent"); }) .catch((error) => { console.error("Error resending verification email:", error); });
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?