File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const AppContent: React.FC<{ passthrough: unknown }> = observer(({ passthrough }
58
58
const { isMobile } = useDevice ( ) ;
59
59
const { switchLanguage } = useTranslations ( ) ;
60
60
61
- const { isOAuth2Enabled, oAuthLogout } = useOauth2 ( {
61
+ const { isOAuth2Enabled } = useOauth2 ( {
62
62
handleLogout : async ( ) => {
63
63
await logout ( ) ;
64
64
} ,
@@ -68,11 +68,14 @@ const AppContent: React.FC<{ passthrough: unknown }> = observer(({ passthrough }
68
68
const is_app_id_set = localStorage . getItem ( 'config.app_id' ) ;
69
69
const is_change_login_app_id_set = localStorage . getItem ( 'change_login_app_id' ) ;
70
70
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
+ // });
76
79
77
80
const [ isWebPasskeysFFEnabled , isGBLoaded ] = useGrowthbookIsOn ( {
78
81
featureFlag : 'web_passkeys' ,
You can’t perform that action at this time.
0 commit comments