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.
- package/dist/src/sdk/sdk.js +1 -6
- package/package.json +1 -1
- package/src/sdk/sdk.ts +1 -5
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -132,12 +132,7 @@ export class ApiSDK {
|
|
|
132
132
|
}
|
|
133
133
|
logout() {
|
|
134
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
|
|
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
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
|
-
|
|
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> {
|