Skip to content

Commit 211e172

Browse files
Adrienne / Revert OIDC changes (#17972)
* chore: reverted oidc changes
1 parent edf2b45 commit 211e172

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/core/src/App/AppContent.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const AppContent: React.FC<{ passthrough: unknown }> = observer(({ passthrough }
5858
const { isMobile } = useDevice();
5959
const { switchLanguage } = useTranslations();
6060

61-
const { isOAuth2Enabled, oAuthLogout } = useOauth2({
61+
const { isOAuth2Enabled } = useOauth2({
6262
handleLogout: async () => {
6363
await logout();
6464
},
@@ -68,11 +68,14 @@ const AppContent: React.FC<{ passthrough: unknown }> = observer(({ passthrough }
6868
const is_app_id_set = localStorage.getItem('config.app_id');
6969
const is_change_login_app_id_set = localStorage.getItem('change_login_app_id');
7070

71-
useSilentLoginAndLogout({
72-
is_client_store_initialized,
73-
isOAuth2Enabled,
74-
oAuthLogout,
75-
});
71+
// NOTE: Commented this out for now due to single logout causing Deriv.app to be logged out continously
72+
// There is a case where if logged_state is false coming from other platforms, Deriv app will SLO the user out
73+
// TODO: Revert this once OIDC is enabled back for Deriv.app
74+
// useSilentLoginAndLogout({
75+
// is_client_store_initialized,
76+
// isOAuth2Enabled,
77+
// oAuthLogout,
78+
// });
7679

7780
const [isWebPasskeysFFEnabled, isGBLoaded] = useGrowthbookIsOn({
7881
featureFlag: 'web_passkeys',

0 commit comments

Comments
 (0)