Google auth doesn't work with preview channels

504 views
Skip to first unread message

Travis Reeder

unread,
Nov 17, 2020, 8:25:23 AM11/17/20
to Firebase Google Group
If you use the new preview channels: https://firebase.google.com/docs/hosting/test-preview-deploy, then Google Auth doesn't work unless you go in and whitelist the URL for every channel.

Not a valid origin for the client: https://abc.web.app has not been whitelisted for client ID abc.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID., https://developers.google.com/identity/sign-in/web/reference#error_codes, null)

Hopefully there's some workaround?  Kind of makes these previews a bit useless if people can't login. 

Travis
 

Michael Bleigh

unread,
Nov 17, 2020, 11:46:53 AM11/17/20
to Firebase Google Group
How are you configuring the authDomain in your Firebase SDK configuration? You shouldn't need to add each preview for Google OAuth login as all logins should be directing through the authDomain which is (by default) <your-site>.fireaseapp.com

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f9671e14-cfe1-4d70-ad57-f6997b49b9a6n%40googlegroups.com.

Travis Reeder

unread,
Dec 23, 2020, 8:27:21 AM12/23/20
to Firebase Google Group
It's the proper authDomain in the firebaseConfig, but the URL for the previews are in this format: https://xxx--pr89-branchname-ovfd9ahc.web.app/
Reply all
Reply to author
Forward
0 new messages