fix(protonvpn/updater): fallback to email if username is empty in auth info response

This commit is contained in:
Quentin McGaw
2026-05-21 16:58:33 +00:00
parent beda1764b1
commit 00d944e713
2 changed files with 17 additions and 6 deletions
@@ -20,7 +20,7 @@ func (u *Updater) FetchServers(ctx context.Context, minServers int) (
return nil, fmt.Errorf("%w: password is empty", common.ErrCredentialsMissing)
}
apiClient, err := newAPIClient(ctx, u.client)
apiClient, err := newAPIClient(ctx, u.client, u.warner)
if err != nil {
return nil, fmt.Errorf("creating API client: %w", err)
}