fix(ui): okta multi tab refresh issue (#21280)

* fix(ui): okta multi tab refresh issue

* add missing import

* update okta settings to run unlimited refresh

* empty commit
This commit is contained in:
Chirag Madlani 2025-07-08 09:57:29 +05:30 committed by GitHub
parent dbc0d97b99
commit ea049643f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,16 +40,19 @@ export const OktaAuthProvider: FunctionComponent<Props> = ({
scopes, scopes,
pkce, pkce,
tokenManager: { tokenManager: {
autoRenew: false, autoRenew: true,
storage: 'localStorage',
syncStorage: true,
expireEarlySeconds: 60, expireEarlySeconds: 60,
secure: true,
}, },
cookies: { cookies: {
secure: true, secure: true,
sameSite: 'none', sameSite: 'lax',
}, },
services: { services: {
autoRenew: false, autoRenew: true,
renewOnTabActivation: false, renewOnTabActivation: true,
tabInactivityDuration: 3600, tabInactivityDuration: 3600,
}, },
}), }),
@ -99,7 +102,7 @@ export const OktaAuthProvider: FunctionComponent<Props> = ({
.catch(async (err) => { .catch(async (err) => {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.error(err); console.error(err);
// Redirect to login on error // Redirect to login on error.
await customAuthHandler(); await customAuthHandler();
}); });
}, },