changePassword( )


Changes the member's password to a new one, using a reset token.

Important:

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

The changePassword() function returns a Promise that resolves when the password is successfully changed, or rejects with an error if the operation fails.

Method Declaration
Copy
Method Parameters
newPasswordstringRequired

New password the member wants to set. Minimum 6 characters.


tokenstringRequired

Reset token received in the email triggered by the sendResetPasswordEmail() function.

Did this help?