@next-core/brick-kit 2.128.1 → 2.129.2
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 +30 -0
- package/dist/index.bundle.js +3 -1
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/auth.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -1415,7 +1415,8 @@ function authenticate(newAuth) {
|
|
|
1415
1415
|
userInstanceId: newAuth.userInstanceId,
|
|
1416
1416
|
loginFrom: newAuth.loginFrom,
|
|
1417
1417
|
accessRule: newAuth.accessRule,
|
|
1418
|
-
isAdmin: newAuth.isAdmin
|
|
1418
|
+
isAdmin: newAuth.isAdmin,
|
|
1419
|
+
csrfToken: newAuth.csrfToken
|
|
1419
1420
|
}); // re-init analytics to set user_id
|
|
1420
1421
|
|
|
1421
1422
|
if (userAnalytics.initialized) {
|
|
@@ -1439,6 +1440,7 @@ function logout() {
|
|
|
1439
1440
|
auth.userInstanceId = undefined;
|
|
1440
1441
|
auth.accessRule = undefined;
|
|
1441
1442
|
auth.isAdmin = undefined;
|
|
1443
|
+
auth.csrfToken = undefined;
|
|
1442
1444
|
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
1443
1445
|
|
|
1444
1446
|
userAnalytics.setUserId();
|