Guys, morning! Can I use Kratos in a different dom...
# talk-kratos
c
Guys, morning! Can I use Kratos in a different domain (auth.my-domani.com) and then use it to authenticate my other Apps? For example, I have 2 NextJS apps, and I want to authenticate these apps in my “auth server” hosted in https://auth.my-domain.com but, I’m not sure how make this flow 😕 The “auth server” generate the cookie and then I have to “send” this cookie to the app authenticated?
b
You can just use it if the apps live on the same (sub)domain, eg: auth.example.com, app1.example.com, app2.example.com
c
Is there any guide on this? Ory will take care of sending the cookie to the app that I want to use?
b
If I am not mistaken, the cookie set will be valid for the domain it is set for including all sub-domains. The
browser
will take care of this. You just have to send the cookie to the API server/auth server when making requests 🙂
c
yeah, thanks!