Hello, We've integrated Super Token into two sepa...
# share-your-work
s
Hello, We've integrated Super Token into two separate Vue.js projects, each with its own unique Super Token and independent validation processes. However, both projects are hosted on the same domain: for instance, one is accessible via https://domain.com, while the other resides at https://admin.domain.com. Our issue arises when both projects are open simultaneously in the browser. Upon logging into one website, the token associated with the second website gets overwritten, causing users to be abruptly logged out with subsequent requests resulting in a 403 error. We're currently grappling with resolving this challenge. If you have any insights or suggestions on how to effectively manage this scenario, we'd greatly appreciate your assistance. Thank you in advance for your help.
r
Hey @sajjadchahardoli
Are they both using the same apiDomain?
s
for admin side use this url https://touic.com/api/v1/web/admin-side for client side use this url https://touic.com/api/v1/web/user-side
r
Right. So the api domain is the same
s
yes
r
So the only way to fix this is to switch to header based auth
s
okay thanks a lot