@pagopa/selfcare-common-frontend 1.34.91 → 1.34.92
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 +9 -2
- package/build.info +2 -2
- package/lib/decorators/withLogin.js +6 -4
- package/lib/decorators/withLogin.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [v1.34.
|
|
7
|
+
#### [v1.34.92](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.92)
|
|
8
8
|
|
|
9
|
+
- Automatic logout [`#327`](https://github.com/pagopa/selfcare-common-frontend/pull/327)
|
|
9
10
|
- automatic logout logic [`#326`](https://github.com/pagopa/selfcare-common-frontend/pull/326)
|
|
10
11
|
- [SELC-8079] feat : handle redirect for backstage [`#324`](https://github.com/pagopa/selfcare-common-frontend/pull/324)
|
|
11
12
|
- hide header chip in backstage [`#323`](https://github.com/pagopa/selfcare-common-frontend/pull/323)
|
|
@@ -149,10 +150,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
149
150
|
- Bump rimraf from 3.0.2 to 6.0.1 [`e6941b9`](https://github.com/pagopa/selfcare-common-frontend/commit/e6941b9e6b05c973d991e2470a851b5ca03926ce)
|
|
150
151
|
- Used a environment variable to manage correct links in the footer based to product and actual environment [`960e2fb`](https://github.com/pagopa/selfcare-common-frontend/commit/960e2fbaa8aa8f79061639b26dc1a27f28b8aae3)
|
|
151
152
|
|
|
152
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
153
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.91...v1.35.0)
|
|
153
154
|
|
|
154
155
|
> 20 July 2023
|
|
155
156
|
|
|
157
|
+
#### [v1.34.91](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.90...v1.34.91)
|
|
158
|
+
|
|
159
|
+
> 16 February 2026
|
|
160
|
+
|
|
161
|
+
- automatic logout logic [`#326`](https://github.com/pagopa/selfcare-common-frontend/pull/326)
|
|
162
|
+
|
|
156
163
|
#### [v1.34.90](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.89...v1.34.90)
|
|
157
164
|
|
|
158
165
|
> 28 January 2026
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
20260216.
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20260216.2 - selfcare-common-frontend.deploy(258176)
|
|
2
|
+
tags/v1.29.0~1^2 f49a0878e3ad71f0fb84868d20a2844182ff8ee2
|
|
@@ -28,17 +28,19 @@ function withLogin(WrappedComponent) {
|
|
|
28
28
|
(0, react_1.useEffect)(() => {
|
|
29
29
|
// eslint-disable-next-line no-console
|
|
30
30
|
console.log('Checking user login status...', { currentPath, currentHash });
|
|
31
|
-
// Check if coming from Google login (path contains /auth/login/success with token fragment)
|
|
32
31
|
if (currentPath.includes('/auth/login/success') &&
|
|
33
32
|
currentHash.includes('token=') &&
|
|
34
33
|
!isPagoPaUser) {
|
|
35
|
-
|
|
34
|
+
storage_1.storageUserOps.delete();
|
|
35
|
+
globalThis.location.assign(env_1.CONFIG.URL_FE.LOGOUT_GOOGLE);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
if (currentPath.includes('/auth/login') && !currentHash.includes('token=') && isPagoPaUser) {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
storage_1.storageUserOps.delete();
|
|
40
|
+
globalThis.location.assign(env_1.CONFIG.URL_FE.LOGOUT);
|
|
41
41
|
}
|
|
42
|
+
}, [currentPath, currentHash, isPagoPaUser]);
|
|
43
|
+
(0, react_1.useEffect)(() => {
|
|
42
44
|
async function asyncAttemptSilentLogin() {
|
|
43
45
|
await attemptSilentLogin();
|
|
44
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withLogin.js","sourceRoot":"","sources":["../../../src/lib/decorators/withLogin.tsx"],"names":[],"mappings":";;AAgBA,
|
|
1
|
+
{"version":3,"file":"withLogin.js","sourceRoot":"","sources":["../../../src/lib/decorators/withLogin.tsx"],"names":[],"mappings":";;AAgBA,4BAsDC;;;AAtED,iCAAkC;AAClC,6CAA0C;AAC1C,uCAAuC;AACvC,6EAA6C;AAC7C,gDAA6C;AAC7C,yDAA0D;AAC1D,kDAA8D;AAC9D,8CAAkD;AAKlD;;;uGAGuG;AACvG,SAAwB,SAAS,CAC/B,gBAAwC;IAExC,MAAM,WAAW,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IAEzF,MAAM,kBAAkB,GAAG,CAAC,KAAgC,EAAE,EAAE;;QAC9D,MAAM,IAAI,GAAG,IAAA,yBAAW,EAAC,yBAAa,CAAC,gBAAgB,CAAC,CAAC;QACzD,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAA,oBAAU,EAAC,oCAAwB,CAAC,CAAC;QAExD,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7C,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QACzC,MAAM,YAAY,GAAG,CAAA,MAAA,wBAAc,CAAC,IAAI,EAAE,0CAAE,GAAG,MAAK,QAAQ,CAAC;QAE7D,IAAA,iBAAS,EAAC,GAAG,EAAE;YACb,sCAAsC;YACtC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;YAE3E,IACE,WAAW,CAAC,QAAQ,CAAC,qBAAqB,CAAC;gBAC3C,WAAW,CAAC,QAAQ,CAAC,QAAQ,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selfcare project",
|
|
4
|
-
"version": "1.34.
|
|
4
|
+
"version": "1.34.92",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|