Skip to content

Commit

Permalink
chore: enable back oidc sso and slo (#17979)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv authored Jan 15, 2025
1 parent b8166c3 commit e489a4f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/core/src/App/AppContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const AppContent: React.FC<{ passthrough: unknown }> = observer(({ passthrough }
const { isMobile } = useDevice();
const { switchLanguage } = useTranslations();

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

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

const [isWebPasskeysFFEnabled, isGBLoaded] = useGrowthbookIsOn({
featureFlag: 'web_passkeys',
Expand Down

0 comments on commit e489a4f

Please sign in to comment.