Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.google undefined in the deployed environment on Netlify #372

Open
Lada496 opened this issue Nov 12, 2024 · 0 comments
Open

window.google undefined in the deployed environment on Netlify #372

Lada496 opened this issue Nov 12, 2024 · 0 comments

Comments

@Lada496
Copy link

Lada496 commented Nov 12, 2024

I found window.google is undefined, and useGoogleLogin did not work properly when I deployed my project on Netlify, though it works fine in the local environment.
Is there any specific setting I need to add? Thanks!

Key Environment

  • @react-oauth/google: v0.12.1
  • react: v18.3.1
  • vite: v5.4.10

Here is the whole code: https://github.com/Lada496/walk-your-dog/tree/with-react-auth/google.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant