Google login in Preview? "content blocked"

When I try to login in my application using Google Auth, I get a “Content is broken” screen instead of the Google auth window.

As far as I can see it could have something to do with the API setup in Google(OAuth consent screen), where you have to register the domains to authorize it with Google OAuth. But I still can’t get it to work. The domain I’ve registred is [my project name]/vercel.app

Is it because the Preview is running on a different domain, or what am I doing wrong?

Hi @emilholm, thanks for sharing the context.

I think you’ve narrowed it down well, the content blocked type of issues are usually due to the domains not authorized to show the Google Auth screens or the API credentials in general.

Can you double check if the domain you are using the credentials on are allowed in the Google Console?

Thanks for responding. I’m talking about the Preview in V0 - so I’m simply unsure of what domain that Preview is running in.

How can I know this?

In my project it says that “v0-qualitive-test-9vnry0pchok” is my Vercel Connection, but I have added this to authorized domains and it still doesn’t work - so it’s probably wrong?

Hi Anshuman

Can you please provide me info about what domain the V0 Preview runs on?

Hi @emilholm, thanks for sharing additional information.

Have you tried using the preview domain that you see when you click Open in new tab? It’d look something like: https://if3j50bvmjas90l68.lite.vusercontent.net/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.