@sumaris-net/ngx-components 1.20.38 → 1.20.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15213,7 +15213,8 @@
15213
15213
  console.debug('[graphql] Apply token authentication to headers');
15214
15214
  this.connectionParams.authToken = token;
15215
15215
  }
15216
- else {
15216
+ // Clean auth token
15217
+ else if (this.connectionParams.authToken) {
15217
15218
  console.debug('[graphql] Remove token authentication from headers');
15218
15219
  delete this.connectionParams.authToken;
15219
15220
  // Clear cache
@@ -15225,7 +15226,8 @@
15225
15226
  console.debug('[graphql] Apply basic authentication to headers');
15226
15227
  this.connectionParams.authBasic = basic;
15227
15228
  }
15228
- else {
15229
+ // Clean auth basic
15230
+ else if (this.connectionParams.authBasic) {
15229
15231
  console.debug('[graphql] Remove basic authentication from headers');
15230
15232
  delete this.connectionParams.authBasic;
15231
15233
  // Clear cache