https://supertokens.com/ logo
cross domain login
a

anupamdagar

04/14/2023, 11:54 AM
Hey folks, we currently have services hosted on different domains and we are trying to use single authentication service for it. The supertokens core and the backend service interacting with it is on
somedomain.in
while few of the backend services are on
otherdomain.com
. The cookie domain is set to
somdomain.in
and its subdomains due to it frontend web client is not sending cookies in the api requests made to
otherdomain.com
. How can I send the same cookie to
otherdomain.com
. I hope the question is clear, let me know if I need to clarify further.
r

rp

04/14/2023, 12:20 PM
Hey @anupamdagar it’s not possible to share cookies across domains like this.
What you are looking for is to use supertokens as an OAuth provider, which we are not (yet). We are working on this feature, but until it’s released you can build the implicit OAuth flow to achieve this.
a

anupamdagar

04/14/2023, 12:22 PM
okay. Could you please elaborate a bit more on the
implicit OAuth flow
?
In that thread ^
a

anupamdagar

04/14/2023, 12:27 PM
Thanks, will check it out.