Hey guys did anyone faced an issue where you call ...
# general
k
Hey guys did anyone faced an issue where you call the
Copy code
session.signOut()
but doesn't clear the cookies and the user is still logged in?
r
Hey @khanprog
This happens if you have a misconfiguration and the session tokens. Aren’t being passed in the request
k
configs on the frontend side or on the backend side
r
Could be either
But most likely frontend
k
alright thanks I will debug that
@rp_st could you advise on the configs a bit. I am using the builtin feature from supertokens I just tested locally its fine. But when deploy to vercel (frontend) and supertokens (digital ocean) which runs with nginx as proxy. The login works fine but not the logout
API_DOMAIN = digital ocean link WEB_DOMAIN = vercel deployment link
r
Can I see the sign in api response headers?
Screenshot will do
k
sure one sec
r
right. Can you hover on the orange triangle? what does it say/
k
r
yup.
SO if you want to contniue to use httpOnly cookies, you need to make the website and api domain on the same base domain, or else, switch to using header based auth instead of cookie (search in our docs for "token transfer method")
k
Alright thanks for the info, I will check that. But if we want to use the cookie based flow there is no other way around except using same base domain
r
yea, unfortunately not. Browsers don't like that
k
Alright, thanks for the help