Multiple oAuth - same provider same domain

Greetings,

We have an internal application and an external application, represented in 2 seperate stytch projects.

We want to use Google oAuth for both of them. The problem, is that the setup requires the same api.stytch.customdomain.tld link to 2 different CNAMES (1 for each project).

How do we handle this?

Hey Daniel – thanks for posting!

It isn’t currently possible for two different Stytch projects to share the exact same custom OAuth domain, but what we’ve seen other customers do is use a different subdomain for one of the two custom domains, like this:

  • Custom OAuth domain for first project: api.stytch.yourdomain.com
  • Custom OAuth domain for second project: api.stytch.subdomain.yourdomain.com

Does that sound like it could work for you?

Yep; this works! Thank you