valtech-components 4.0.52 → 4.0.55
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/esm2022/lib/components/atoms/skeleton/skeleton.component.mjs +35 -23
- package/esm2022/lib/services/auth/auth.service.mjs +21 -29
- package/esm2022/lib/services/auth/storage.service.mjs +24 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +78 -53
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/auth/storage.service.d.ts +11 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,18 @@ export declare class AuthStorageService {
|
|
|
7
7
|
private config;
|
|
8
8
|
private keys;
|
|
9
9
|
private readonly isBrowser;
|
|
10
|
+
/**
|
|
11
|
+
* H-05: modo cookie-only del refresh token. `true` cuando el frontend y la API
|
|
12
|
+
* comparten site (mismo registrable domain) → la cookie HttpOnly es
|
|
13
|
+
* first-party y confiable → NO se persiste el refresh en localStorage (un XSS
|
|
14
|
+
* no puede robarlo). `false` en cross-site (dev `.web.app` vs `.myvaltech.com`)
|
|
15
|
+
* donde los browsers bloquean la cookie de terceros (Safari ITP, Chrome
|
|
16
|
+
* 3rd-party phase-out) → fallback transition-safe (refresh en localStorage).
|
|
17
|
+
*/
|
|
18
|
+
readonly cookieOnly: boolean;
|
|
10
19
|
constructor(config: ValtechAuthConfig | null, platformId: Object);
|
|
20
|
+
/** Same-site check: frontend host vs API host comparten registrable domain. */
|
|
21
|
+
private computeCookieOnly;
|
|
11
22
|
/**
|
|
12
23
|
* Guarda el estado completo de autenticación.
|
|
13
24
|
*/
|
package/lib/version.d.ts
CHANGED