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_st
04/14/2023, 12:20 PM
Hey @anupam it’s not possible to share cookies across domains like this.
rp_st
04/14/2023, 12:21 PM
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
anupam
04/14/2023, 12:22 PM
okay. Could you please elaborate a bit more on the
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).