GetStream/stream-video-js

Google Auth is Broken when used from a Vercel Preview Link (React Dogfooding)

vanGalilea opened this issue · 1 comments

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

Screenshot 2022-10-24 at 08 29 26

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.