• Update the caller's password. To help prevent CSRF attack vectors, the user's old password and email address are required.

    import {Auth} from '@verdocs/js-sdk/Auth';

    const {status, message} = await Auth.updatePassword({ email, oldPassword, newPassword });
    if (status !== 'OK') {
    window.alert(`Password reset error: ${message}`);
    }

    Parameters

    Returns Promise<UpdatePasswordResponse>