This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sends a site member an email with a link to set their password.
The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains.
function sendSetPasswordEmail(
email: string,
options: SendSetPasswordEmailOptions,
): Promise<SendSetPasswordEmailResponse>;
Login email of the member whose password will be set.
Email display options.
import { authentication } from "wix-members.v2";
async function sendSetPasswordEmail(email, options) {
try {
const result = await authentication.sendSetPasswordEmail(email, options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.