Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use multiple domains for a single app / single client ID?

I am using google auth for my web app hosted on multiple domains. Can I use the same client ID I obtain from google for each domain.

They are listed as authorized redirect URIs in the consle.

For example, I have one for localhost, mydomain, my-test-domain, etc.

https://localhost:3000/auth/google/callback
https://mydomain/auth/google/callback
https://my-test-domain/auth/google/callback
like image 695
favor Avatar asked Sep 02 '25 16:09

favor


1 Answers

Yes, you can specify multiple URIs. The URIs can contain different domain names.

like image 162
John Hanley Avatar answered Sep 04 '25 07:09

John Hanley