Google Auth is Broken when used from a Vercel Preview Link (React Dogfooding)
vanGalilea opened this issue · 1 comments
vanGalilea commented
The Problem
The Google Auth is Broken when used from a Vercel Preview Link.
Steps to Reproduce
- Go to a Vercel Preview Link. You can also generate one by creating a PR.
- Try to log in via Google.
- Error 400 Redirect URI mismatch appears
Possible Solution
- We might have more than one HTTP URL that is registered (see SO)
- The redirect URL is simply not matching with the preview one.
Screenshots
oliverlaz commented
Hey @vanGalilea, unfortunately, this is a limitation on Google's side.
They don't accept wild-card URLs and every authorized URL has to be announced upfront through Google Cloud Console.
In case you need certain preview URLs to be whitelisted, please let me know, I'd be happy to do that for you.
In meantime, I'll close this issue.