@evergis/api 4.1.42 → 4.1.43

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.
package/dist/index.js CHANGED
@@ -2963,11 +2963,11 @@ class Api extends EventEmitter {
2963
2963
  request.headers?.set("Authorization", `Bearer ${refreshTokenResponse.token || ""}`);
2964
2964
  }
2965
2965
  else {
2966
- await this.account.logout();
2966
+ await this.logout();
2967
2967
  }
2968
2968
  }
2969
2969
  catch (error) {
2970
- await this.account.logout();
2970
+ await this.logout();
2971
2971
  }
2972
2972
  break;
2973
2973
  }