Skip to content

Commit

Permalink
Re-fetch auth tokens on EVERY page load
Browse files Browse the repository at this point in the history
  • Loading branch information
benmartin-coforma committed Nov 18, 2024
1 parent d1f8c0e commit fb10465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ui-src/src/utils/api/apiLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function getRequestHeaders(): Promise<RequestHeaders | undefined> {
}

export async function getTokens(): Promise<AuthTokens | undefined> {
return (await fetchAuthSession()).tokens;
return (await fetchAuthSession({ forceRefresh: true })).tokens;
}

export async function authenticateWithIDM(): Promise<void> {
Expand Down

0 comments on commit fb10465

Please sign in to comment.