https://supabase.com/ logo
#help
Title
# help
y

yoamomonstruos

04/02/2022, 5:12 PM
Hey everyone, I'm playing with supabase for the first time. I've run into an issue that I thought someone might have experienced. I have two next applications on different subdomains that I want to share authentication. Setting the cookie domain to
.domain.com
seems to work as expected, however logging out seems to be failing as a result. Has anyone else ran into this problem?
n

Needle

04/02/2022, 5:12 PM
Hello @yoamomonstruos! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
s

sylar815

04/02/2022, 5:19 PM
What error you are getting?
n

Needle

04/02/2022, 5:19 PM
yoamomonstruos (2022-04-02)
y

yoamomonstruos

04/02/2022, 5:21 PM
No actual errors, but the sign out is not clearling the cookies it seems
I've tried calling the function on the client, on the api and using auth-helpers package for next. They all work if the domain is not set, but with the
.domain.com
they stop clearing the cookies.
s

sylar815

04/02/2022, 5:37 PM
Probably issue Coz of using diff subdomain
y

yoamomonstruos

04/02/2022, 8:28 PM
Yes.