Auth0 Home Blog Docs

checkSession function is returning the token of the other tab user

auth0
auth0-sdk
checksession

#1

Ours is an Angular JS application but we are redirecting to login page from static html page.after login is successful we are initializing the angular application.There we are again intialising the webAuth and we are using
webAuth.checkSession to refresh the token.

it is working fine if we are login in from one tab but if we have application open in two tab simulatenously. when we call checkSession before token expiry we are getting the token of tabA user in tabB.

which is resulting in user mixup in tabs.

Any Idea how it can be fixed?