Muiltiple tab logout issue

I’m using keycloak-js to integrate in my front end project (React). It’s working pretty well, but when I have 2 or more tabs of my system, only the last one is able to refresh token, the others get error 400 and are redirected to logout confirmation page.

I found some similar case on the internet, but I couldn’t find any solution yet.

I’m using keycloak-js@21.0.1 and my init config are like this:

onLoad: 'check-sso',
silentCheckSsoRedirectUri: window.location.origin + '/silent-check-sso.html',

Is there anyone fixing the same issue? how can I fix this?

@lxuancheng hi, I’ve stumbled across the same issue, have you figured it out?