@linzjs/lui 17.5.11 → 17.5.12
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/CHANGELOG.md +7 -0
- package/dist/components/lol/LOLLogoutLink.d.ts +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +7 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/lui.esm.js
CHANGED
|
@@ -56573,8 +56573,14 @@ var LOLLogoutLink = function (props) {
|
|
|
56573
56573
|
var res;
|
|
56574
56574
|
return __generator(this, function (_a) {
|
|
56575
56575
|
switch (_a.label) {
|
|
56576
|
-
case 0:
|
|
56576
|
+
case 0:
|
|
56577
|
+
if (!props.callBackBeforeLogout) return [3 /*break*/, 2];
|
|
56578
|
+
return [4 /*yield*/, props.callBackBeforeLogout()];
|
|
56577
56579
|
case 1:
|
|
56580
|
+
_a.sent();
|
|
56581
|
+
_a.label = 2;
|
|
56582
|
+
case 2: return [4 /*yield*/, fetch('/auth/api/logout')];
|
|
56583
|
+
case 3:
|
|
56578
56584
|
res = _a.sent();
|
|
56579
56585
|
if (res.status === 200) {
|
|
56580
56586
|
window.location.assign("/auth/login?redirectPath=" + redirectPathString);
|