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.
@@ -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
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.52";
5
+ export declare const VERSION = "4.0.55";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.52",
3
+ "version": "4.0.55",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"