client.getSession(sessionId).delete() is not signing out automatically after deleting session

Hi Team,

I am making changes for session management, as part of it i want to kick out the old login with a new login. For this, i am storing the session info in my table on every login. And in my service component i am deleting the older session with client.getSession(sessionId).delete();
Its working fine in backend but in UI, old login is not getting auto sign out.

I tried signing out with idToken as per below code but its not working because it does not have idToken of deleted session …

idToken: resp.token,

How can i track the sessionId of deleted session ?