But this now prevents cookies to be set when working locally. Is there any way for cookies to be set under either
.domain.com
or
localhost
for example?
r
rp_st
10/27/2022, 11:53 AM
hey @ulys3556 are you sharing the same server for local dev and when it's being queried from
.domain.com
?
rp_st
10/27/2022, 11:53 AM
or is it just the same code, but different servers?
u
ulys3556
10/27/2022, 12:00 PM
Well I can't ask front-end collaborators to spin the backend locally so locally they're using the same server that is being queried by let's say
dev.a.domain.com
r
rp_st
10/27/2022, 12:07 PM
hmmm. Is it possible for you to deploy a backend server just for localhost and use this one for
.domain
? That would be easiest
rp_st
10/27/2022, 12:08 PM
If not, then you will have to hack around functions that set cookies to manually change this config based on the input domain, which is possible, but it's just not clean
u
ulys3556
10/27/2022, 12:43 PM
Yeah we'll try avoiding anything hacky. We ended up having local frontend projects use a
something.domain.com
virtual host and it seems to be doing the trick. Now I just have to find out how to do something similar with postman haha
Thanks for your help @rp_st !
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).