Skip to content

Add Google OAuth sign-in via Supabase Auth on the login page#34

Merged
xylo04 merged 1 commit into
mainfrom
copilot/add-google-login-supabase-auth
May 25, 2026
Merged

Add Google OAuth sign-in via Supabase Auth on the login page#34
xylo04 merged 1 commit into
mainfrom
copilot/add-google-login-supabase-auth

Conversation

Copilot AI commented May 25, 2026

Copy link
Copy Markdown
Contributor

This PR adds Google login support through Supabase Auth so users can authenticate without email/password. The login flow now supports both OAuth and existing credential-based sign-in with redirect preservation.

  • Auth service: Google OAuth entrypoint

    • Added signInWithGoogle(redirectPath?: string) to AuthService.
    • Uses Supabase signInWithOAuth with provider: 'google'.
    • Reuses existing redirect URL construction to preserve post-login navigation.
  • Login page: OAuth action + state handling

    • Added a Continue with Google action on the sign-in screen.
    • Wired button click to signInWithGoogle(...) using current redirectTo query param.
    • Reused existing submit/error state model so OAuth errors surface consistently.
  • Login UI updates

    • Inserted OAuth-first layout with a lightweight separator before email/password fields.
    • Kept existing password login flow unchanged.
  • Spec coverage for new flow

    • Extended login specs to verify:
      • latest redirectTo value is passed to Google sign-in
      • OAuth error message is surfaced to the page state
const { error } = await this.authClient.signInWithOAuth({
  provider: 'google',
  options: {
    redirectTo: this.buildRedirectUrl(redirectPath),
  },
});

@supabase

supabase Bot commented May 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project cpibdotiiptojhawnpff because there are no changes detected in backend/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@xylo04 xylo04 marked this pull request as ready for review May 25, 2026 02:28
@xylo04 xylo04 merged commit 1578389 into main May 25, 2026
4 checks passed
@xylo04 xylo04 deleted the copilot/add-google-login-supabase-auth branch May 25, 2026 02:29
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.

2 participants