@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.
- package/bundles/sunbird-cb-utils.umd.js +13 -1
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils.umd.min.js +1 -1
- package/bundles/sunbird-cb-utils.umd.min.js.map +1 -1
- package/esm2015/lib/services/auth-keycloak.service.js +12 -1
- package/esm5/lib/services/auth-keycloak.service.js +14 -2
- package/fesm2015/sunbird-cb-utils.js +11 -0
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/fesm5/sunbird-cb-utils.js +13 -1
- package/fesm5/sunbird-cb-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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
|
});
|