public async Task ResetPasswordAsync(string loginName, string newPassword,
                                             UserCredentials?userCredentials = null, CancellationToken cancellationToken = default)
        {
            if (loginName == null)
            {
                throw new ArgumentNullException(nameof(loginName));
            }
            if (newPassword == null)
            {
                throw new ArgumentNullException(nameof(newPassword));
            }
            if (loginName == string.Empty)
            {
                throw new ArgumentOutOfRangeException(nameof(loginName));
            }
            if (newPassword == string.Empty)
            {
                throw new ArgumentOutOfRangeException(nameof(newPassword));
            }

            await _client.ResetPasswordAsync(new ResetPasswordReq {
                Options = new ResetPasswordReq.Types.Options {
                    NewPassword = newPassword,
                    LoginName   = loginName
                }
            }, EventStoreCallOptions.Create(Settings, Settings.OperationOptions, userCredentials, cancellationToken));
        }
        public async Task ResetPasswordAsync(string loginName, string newPassword,
                                             UserCredentials?userCredentials = null, CancellationToken cancellationToken = default)
        {
            if (loginName == null)
            {
                throw new ArgumentNullException(nameof(loginName));
            }
            if (newPassword == null)
            {
                throw new ArgumentNullException(nameof(newPassword));
            }
            if (loginName == string.Empty)
            {
                throw new ArgumentOutOfRangeException(nameof(loginName));
            }
            if (newPassword == string.Empty)
            {
                throw new ArgumentOutOfRangeException(nameof(newPassword));
            }

            await _client.ResetPasswordAsync(new ResetPasswordReq {
                Options = new ResetPasswordReq.Types.Options {
                    NewPassword = newPassword,
                    LoginName   = loginName
                }
            }, RequestMetadata.Create(userCredentials ?? Settings.DefaultCredentials), cancellationToken : cancellationToken);
        }