diff --git a/services/ui-src/src/utils/api/apiLib.ts b/services/ui-src/src/utils/api/apiLib.ts index 557d8887a..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 { @@ -55,7 +55,7 @@ export async function loginUser( } export async function logoutUser(): Promise { - await signOut(); + await signOut({ global: true }); } export async function refreshSession(): Promise {