Add Google OAuth to the sign-in page

younglah added a "Sign in with Google" button to the login page using Supabase's OAuth flow, with an "or" divider above the existing email/password form. The same commit rebrands the footer to identify this as an internal Helinox deployment.

securitybranding

The new handleGoogleLogin handler calls supabase.auth.signInWithOAuth with provider: "google" and redirects to /assistant on completion. It's about 10 lines of actual logic. The Google icon is a hardcoded inline SVG with the four brand-color paths.

The footer change - "Helinox internal legal platform. Authorized users only." - is fork-specific and should not be pulled. But the OAuth wiring itself is self-contained and has no Helinox-specific dependencies.

One prerequisite: Google must be configured as an enabled provider in the Supabase project dashboard. The code calls the provider by name, and Supabase will return an error if Google OAuth isn't activated on that project. Nothing in the diff handles that case beyond surface-level error display.

The rest of the diff is reformatting. Collapsed JSX attributes, dropped the unused data destructure from signInWithPassword.

So what Worth a look if your fork runs on Supabase Auth and you want Google login. The code is minimal and clean. Skip the footer copy. Confirm Google is enabled as a provider in your Supabase project before deploying.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from younglah/legal-ops-platform, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
7c77b0a9 Update page.tsx younglah 2026-05-21 ↗ GitHub
Add Google login button

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-565.md from inside the repo you want the changes in.

⬇ Download capture-thread-565.md