@next-core/brick-kit 2.128.1 → 2.129.0

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.129.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.128.1...@next-core/brick-kit@2.129.0) (2022-08-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * support crsf token ([3ef8c62](https://github.com/easyops-cn/next-core/commit/3ef8c624af8126185222ce2e98c4c5622e6de9e7))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.128.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.128.0...@next-core/brick-kit@2.128.1) (2022-08-19)
7
18
 
8
19
 
@@ -1414,7 +1414,8 @@
1414
1414
  userInstanceId: newAuth.userInstanceId,
1415
1415
  loginFrom: newAuth.loginFrom,
1416
1416
  accessRule: newAuth.accessRule,
1417
- isAdmin: newAuth.isAdmin
1417
+ isAdmin: newAuth.isAdmin,
1418
+ csrfToken: newAuth.csrfToken
1418
1419
  }); // re-init analytics to set user_id
1419
1420
 
1420
1421
  if (easyopsAnalytics.userAnalytics.initialized) {
@@ -1438,6 +1439,7 @@
1438
1439
  auth.userInstanceId = undefined;
1439
1440
  auth.accessRule = undefined;
1440
1441
  auth.isAdmin = undefined;
1442
+ auth.csrfToken = undefined;
1441
1443
  resetPermissionPreChecks(); // re-init analytics to clear user_id
1442
1444
 
1443
1445
  easyopsAnalytics.userAnalytics.setUserId();