title: How to handle social logins on subdomains loaded as domains via CNAME?
body: <p>I have a project where subdomains are created for each of my users. So, if my project is example.com, a customer of mine might have steve.example.com.</p>
  
  <p>I then added social logins with Google and Facebook. For Google's "Authorized JavaScript origins" and "Authorized redirect URIs", they don't allow wildcard domains. What's the best way to handle this?</p>
  
  <p>Next, it gets more complicated for users that want to load steve.example.com on their own domain via CNAME. So if example2.com's DNS is pointed to steve.example.com, it appears I need to add example2.com to my Authorized Javascript Origins. What's the best way to handle this? Can I add it via API? I can't find any documentation regarding this and I'd rather not have to manually add 1000 subdomains and domains to Google.</p>