@sunbird-cb/utils 1.0.10 → 1.0.11

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.
@@ -2171,9 +2171,21 @@
2171
2171
  return __awaiter(this, void 0, void 0, function () {
2172
2172
  return __generator(this, function (_a) {
2173
2173
  switch (_a.label) {
2174
- case 0: return [4, this.http.get('/apis/reset').toPromise()];
2174
+ case 0:
2175
+ if (storage$1.getItem('telemetrySessionId')) {
2176
+ storage$1.removeItem('telemetrySessionId');
2177
+ }
2178
+ try {
2179
+ sessionStorage.clear();
2180
+ localStorage.clear();
2181
+ }
2182
+ catch (_b) {
2183
+ }
2184
+ storage$1.removeItem(storageKey$1);
2185
+ return [4, this.http.get('/apis/reset').toPromise()];
2175
2186
  case 1:
2176
2187
  _a.sent();
2188
+ window.location.href = '/public/logout';
2177
2189
  return [2];
2178
2190
  }
2179
2191
  });