Skip to content

Commit

Permalink
Revert "Adrienne / Fix self exclusion not logging out with OIDC (#18078
Browse files Browse the repository at this point in the history
…)" (#18081)

This reverts commit 30d7a0f.
  • Loading branch information
amam-deriv authored Feb 26, 2025
1 parent 30d7a0f commit 34627d0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/core/src/Services/socket-general.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { localize } from '@deriv/translations';
import ServerTime from '_common/base/server_time';
import BinarySocket from '_common/base/socket_base';
import WS from './ws-methods';
import { OAuth2Logout } from '@deriv-com/auth-client';

let client_store, common_store, gtm_store;
let reconnectionCounter = 1;
Expand Down Expand Up @@ -143,14 +142,8 @@ const BinarySocketGeneral = (() => {
const remaining_session_time = duration * 60 * 1000 - current_session_duration;
clearTimeout(session_timeout);
session_timeout = setTimeout(() => {
OAuth2Logout({
WSLogoutAndRedirect: () => {
client_store.logout();
sessionStorage.removeItem('session_start_time');
},
redirectCallbackUri: `${window.location.origin}/callback`,
postLogoutRedirectUri: `${window.location.origin}/`
});
client_store.logout();
sessionStorage.removeItem('session_start_time');
}, remaining_session_time);
} else if (!duration) {
clearTimeout(session_timeout);
Expand Down

0 comments on commit 34627d0

Please sign in to comment.