whio-api-sdk 1.0.166 → 1.0.167

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.
@@ -132,12 +132,7 @@ export class ApiSDK {
132
132
  }
133
133
  logout() {
134
134
  return __awaiter(this, void 0, void 0, function* () {
135
- try {
136
- yield this.request('/auth/logout', 'POST');
137
- }
138
- finally {
139
- yield this.clearAuth();
140
- }
135
+ yield this.clearAuth();
141
136
  });
142
137
  }
143
138
  clearAuth() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.166",
3
+ "version": "1.0.167",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -192,11 +192,7 @@ export class ApiSDK {
192
192
  }
193
193
 
194
194
  public async logout(): Promise<void> {
195
- try {
196
- await this.request('/auth/logout', 'POST');
197
- } finally {
198
- await this.clearAuth();
199
- }
195
+ await this.clearAuth();
200
196
  }
201
197
 
202
198
  private async clearAuth(): Promise<void> {