Skip to content

Commit

Permalink
Adrienne / Revert OIDC changes (deriv-com#17972)
Browse files Browse the repository at this point in the history
* chore: reverted oidc changes
  • Loading branch information
adrienne-deriv authored Jan 14, 2025
1 parent edf2b45 commit 211e172
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 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, oAuthLogout } = useOauth2({
const { isOAuth2Enabled } = useOauth2({
handleLogout: async () => {
await logout();
},
Expand All @@ -68,11 +68,14 @@ 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');

useSilentLoginAndLogout({
is_client_store_initialized,
isOAuth2Enabled,
oAuthLogout,
});
// 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,
// });

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

0 comments on commit 211e172

Please sign in to comment.