diff --git a/pkg/config/updater.go b/pkg/config/updater.go index d31661f4e..278e7f8c3 100644 --- a/pkg/config/updater.go +++ b/pkg/config/updater.go @@ -124,11 +124,9 @@ func (u *ConfigUpdater) UpdateAuthConfig(ctx context.Context, projectRef string, return nil } } - var updateBody v1API.UpdateAuthConfigBody + var updateBody = c.ToUpdateAuthConfigBody() if u.skipSecrets { - updateBody = c.StripUpdateBodySecrets(c.ToUpdateAuthConfigBody()) - } else { - updateBody = c.ToUpdateAuthConfigBody() + updateBody = c.StripUpdateBodySecrets(updateBody) } if resp, err := u.client.V1UpdateAuthServiceConfigWithResponse(ctx, projectRef, updateBody); err != nil { return errors.Errorf("failed to update Auth config: %w", err)