From fb10465721b7f9919b697c0ed5ff57188c49a366 Mon Sep 17 00:00:00 2001 From: benmartin-coforma Date: Mon, 18 Nov 2024 14:23:33 -0700 Subject: [PATCH] Re-fetch auth tokens on EVERY page load --- services/ui-src/src/utils/api/apiLib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ui-src/src/utils/api/apiLib.ts b/services/ui-src/src/utils/api/apiLib.ts index ebcfc7e2f..066f866e5 100644 --- a/services/ui-src/src/utils/api/apiLib.ts +++ b/services/ui-src/src/utils/api/apiLib.ts @@ -40,7 +40,7 @@ export async function getRequestHeaders(): Promise { } export async function getTokens(): Promise { - return (await fetchAuthSession()).tokens; + return (await fetchAuthSession({ forceRefresh: true })).tokens; } export async function authenticateWithIDM(): Promise {