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.
function resendVerificationCodeEmail(): Promise<void>;
import { authentication } from "wix-members-frontend";
authentication
.resendVerificationCodeEmail()
.then(() => {
console.log("Verification code email resent");
})
.catch((error) => {
console.error("Error resending verification email:", error);
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.