Skip to content

fix(frontend): wrap app with GoogleOAuthProvider to fix login crash#144

Open
leno23 wants to merge 1 commit into
rdodiya:gssoc_developfrom
leno23:fix/google-oauth-provider-wrapper
Open

fix(frontend): wrap app with GoogleOAuthProvider to fix login crash#144
leno23 wants to merge 1 commit into
rdodiya:gssoc_developfrom
leno23:fix/google-oauth-provider-wrapper

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Fixes #139

  • Repair RestroHub-FrontEnd/src/main.jsx (removed invalid top-level JSX and duplicate providers)
  • Wrap <App /> in <GoogleOAuthProvider clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}>
  • Document VITE_GOOGLE_CLIENT_ID in .env.example and README Frontend Setup

Test plan

  • cd RestroHub-FrontEnd && cp .env.example .env and set a valid Google client ID
  • npm install && npm run dev
  • Open /login — page renders (no white screen); Google button visible

Made with Cursor

Repair broken main.jsx entry, document VITE_GOOGLE_CLIENT_ID in
.env.example and README so /login no longer crashes with a blank screen.
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

Successfully merging this pull request may close these issues.

[Bug]: Login page crashes with white screen due to missing GoogleOAuthProvider wrapper

1 participant