mesauth-angular 1.23.0 → 1.24.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mesauth-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -245,9 +245,18 @@ declare class MesAuthService {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
* Functional HTTP interceptor
|
|
249
|
-
*
|
|
250
|
-
*
|
|
248
|
+
* Functional HTTP interceptor.
|
|
249
|
+
*
|
|
250
|
+
* Responsibilities:
|
|
251
|
+
* 1. Attach `Authorization: Bearer` + `X-Refresh-Token` from localStorage to requests
|
|
252
|
+
* targeting the auth server / trusted hosts (so the server-side Authorizer middleware
|
|
253
|
+
* can perform silent refresh and emit X-Refreshed-* response headers).
|
|
254
|
+
* 2. On every successful response, if `X-Refreshed-Token` is present, write it to
|
|
255
|
+
* localStorage exactly once (dedup across parallel responses).
|
|
256
|
+
* 3. On 401, queue concurrent failures behind a single 1.5s wait so only ONE retry
|
|
257
|
+
* fires per refresh window. Retries strip the stale auth headers so the interceptor
|
|
258
|
+
* re-reads the freshly-stored tokens from localStorage.
|
|
259
|
+
* 4. On 403, redirect to /403.
|
|
251
260
|
*/
|
|
252
261
|
declare const mesAuthInterceptor: HttpInterceptorFn;
|
|
253
262
|
|
|
@@ -1131,7 +1140,7 @@ interface MaUiManifest {
|
|
|
1131
1140
|
quickPrompts?: string[];
|
|
1132
1141
|
}
|
|
1133
1142
|
/** Current installed package version — keep in sync with package.json. */
|
|
1134
|
-
declare const PACKAGE_VERSION = "1.
|
|
1143
|
+
declare const PACKAGE_VERSION = "1.24.0";
|
|
1135
1144
|
/**
|
|
1136
1145
|
* Provides server-driven UI configuration loaded from the hosted manifest.
|
|
1137
1146
|
* Components read `labels()` and `features()` signals instead of hardcoded strings.
|