• Updates user's password while authenticated.

    Parameters

    Returns Promise<void>

    Throws

    • ChangePasswordException - Cognito service errors thrown when updating a password.

    Throws

    • AuthValidationErrorCode - Validation errors thrown when oldPassword or newPassword are empty.

    Throws

    AuthTokenConfigException - Thrown when the token provider config is invalid.