intelica-library-ui 0.1.50 → 0.1.51
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.
|
@@ -329,6 +329,7 @@ const RefreshTokenInterceptor = (req, next) => {
|
|
|
329
329
|
let _request = req.clone();
|
|
330
330
|
let authenticationLocation = `${configService.environment?.authenticationWeb}?callback=${window.location.href}&clientID=${configService.environment?.clientID}`;
|
|
331
331
|
let path = `${configService.environment?.authenticationPath ?? ""}/Authenticate/ValidateToken`;
|
|
332
|
+
var authenticationClientID = configService.environment?.clientID ?? "";
|
|
332
333
|
let validateTokenQuery = {
|
|
333
334
|
token: getCookie("token") ?? "",
|
|
334
335
|
refreshToken: getCookie("refreshToken") ?? "",
|
|
@@ -338,6 +339,7 @@ const RefreshTokenInterceptor = (req, next) => {
|
|
|
338
339
|
controller: "",
|
|
339
340
|
httpVerb: "GET",
|
|
340
341
|
businessUserClientGroupID: getCookie("businessUserClientGroupID") ?? "",
|
|
342
|
+
access: authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "",
|
|
341
343
|
};
|
|
342
344
|
if (!req.url.includes("ValidateToken") && !req.url.includes("environment.json") && !req.url.includes("GetAuthenticationFromCache"))
|
|
343
345
|
return from(httpClient.post(path, validateTokenQuery)).pipe(switchMap((response) => {
|