ng-easycommerce-v18 0.6.32 → 0.6.33
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/README.md +5 -0
- package/esm2022/lib/ec-components/checkout-ec/checkout-ec.component.mjs +25 -3
- package/esm2022/lib/ec-guards/auth.guard.mjs +3 -4
- package/esm2022/lib/ec-services/auth.service.mjs +190 -28
- package/esm2022/lib/ec-services/cart.service.mjs +31 -1
- package/esm2022/lib/ec-services/channel.service.mjs +61 -24
- package/esm2022/lib/interceptors/auth.interceptor.mjs +78 -27
- package/fesm2022/ng-easycommerce-v18.mjs +378 -80
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-components/checkout-ec/checkout-ec.component.d.ts +2 -1
- package/lib/ec-services/auth.service.d.ts +32 -4
- package/lib/ec-services/cart.service.d.ts +5 -0
- package/lib/ec-services/channel.service.d.ts +20 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# Version 0.6.33
|
|
2
|
+
- Auth: el core rehidrata la sesión al reabrir el navegador usando `REFRESH_TOKEN` antes de resolver `authGuard` o dejar el usuario deslogueado.
|
|
3
|
+
- Auth: `JWT_TOKEN`, `REFRESH_TOKEN` y `EXPIRATES_IN` se persisten con expiración para mantener la sesión activa entre pestañas y cierres del navegador.
|
|
4
|
+
- Auth: cuando el backend expone `refresh_token`, el core lo guarda y reintenta una sola vez ante `401` con `POST /shop-api/token/refresh`; si el backend viejo no lo devuelve, conserva el flujo legacy y el logout clásico ante `401/403`.
|
|
5
|
+
- Auth: se agregan tests para cubrir persistencia, rehidratación y compatibilidad hacia atrás del flujo de autenticación.
|
|
1
6
|
# Version 0.6.32
|
|
2
7
|
- Carrito: al cerrar sesión se limpia el estado previo y se solicita un carrito anónimo nuevo al backend para evitar que el siguiente agregado termine apuntando a `/carts/null/items`.
|
|
3
8
|
- Wishlist: si el backend no envía configuración de visibilidad, la funcionalidad queda deshabilitada por defecto para no consumir `/wishlists` en canales desactualizados.
|