@plone/volto 18.32.0 → 18.32.1
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
|
@@ -17,6 +17,12 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.32.1 (2026-01-23)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Remove '__ac' cookie when authtoken expires @Tishasoumya-02 [#7783](https://github.com/plone/volto/issues/7783)
|
|
25
|
+
|
|
20
26
|
## 18.32.0 (2026-01-12)
|
|
21
27
|
|
|
22
28
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.32.
|
|
12
|
+
"version": "18.32.1",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -242,8 +242,8 @@
|
|
|
242
242
|
"use-deep-compare-effect": "1.8.1",
|
|
243
243
|
"uuid": "^8.3.2",
|
|
244
244
|
"@plone/registry": "2.7.0",
|
|
245
|
-
"@plone/
|
|
246
|
-
"@plone/
|
|
245
|
+
"@plone/volto-slate": "18.8.0",
|
|
246
|
+
"@plone/scripts": "3.10.3"
|
|
247
247
|
},
|
|
248
248
|
"devDependencies": {
|
|
249
249
|
"@babel/core": "^7.0.0",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import Cookies from 'universal-cookie';
|
|
7
7
|
import jwtDecode from 'jwt-decode';
|
|
8
|
-
|
|
9
8
|
import { loginRenew } from '@plone/volto/actions/userSession/userSession';
|
|
10
9
|
import { getCookieOptions } from '@plone/volto/helpers/Cookies/cookies';
|
|
11
10
|
import { push } from 'connected-react-router';
|
|
@@ -35,7 +34,6 @@ export function persistAuthToken(store, req) {
|
|
|
35
34
|
} else {
|
|
36
35
|
currentValue = cookies.get('auth_token');
|
|
37
36
|
}
|
|
38
|
-
|
|
39
37
|
/**
|
|
40
38
|
* handleChange method.
|
|
41
39
|
* @method handleChange
|
|
@@ -46,7 +44,6 @@ export function persistAuthToken(store, req) {
|
|
|
46
44
|
const previousValue = currentValue;
|
|
47
45
|
const state = store.getState();
|
|
48
46
|
currentValue = state.userSession.token;
|
|
49
|
-
|
|
50
47
|
if (
|
|
51
48
|
module.hot &&
|
|
52
49
|
module.hot.data &&
|
|
@@ -55,11 +52,11 @@ export function persistAuthToken(store, req) {
|
|
|
55
52
|
) {
|
|
56
53
|
currentValue = previousValue;
|
|
57
54
|
}
|
|
58
|
-
|
|
59
55
|
if (previousValue !== currentValue || initial) {
|
|
60
56
|
if (!currentValue) {
|
|
61
57
|
if (previousValue) {
|
|
62
58
|
cookies.remove('auth_token', { path: '/' });
|
|
59
|
+
cookies.remove('__ac', { path: '/' });
|
|
63
60
|
}
|
|
64
61
|
} else {
|
|
65
62
|
if (previousValue !== currentValue) {
|
|
@@ -97,11 +94,9 @@ export function persistAuthToken(store, req) {
|
|
|
97
94
|
}
|
|
98
95
|
}
|
|
99
96
|
}
|
|
100
|
-
|
|
101
97
|
store.subscribe(handleChange);
|
|
102
98
|
handleChange(true);
|
|
103
99
|
}
|
|
104
|
-
|
|
105
100
|
if (module?.hot) {
|
|
106
101
|
module.hot.dispose((data) => {
|
|
107
102
|
data.reloaded = true;
|