Skip to content

fix: connect Google from settings without a 404 - #137

Merged
paulocastellano merged 1 commit into
mainfrom
fix/settings-google-connect-404
Sep 14, 2026
Merged

paulocastellano merged 1 commit into
mainfrom
fix/settings-google-connect-404

Conversation

@paulocastellano

Copy link
Copy Markdown
Contributor

Summary

  • The Connect button on /settings/authentication pointed at /auth/google/login, the guest sign-in start. A signed-in user landing there got a 404 (or bounced off guest).
  • Same pattern as TryPost: settings has its own GET /settings/authentication/providers/{provider}/connect, login stays on /auth/{provider}/login, and the callback links the account when you are already signed in.
  • Connect only shows when that provider is actually enabled.

Test plan

  • Sign in with email/password, open Settings → Authentication, click Connect on Google — should go to Google and come back linked, not to /auth/google/login.
  • Repeat for GitHub if credentials are set.
  • Guest Google/GitHub login from /login still works.
  • Connecting a Google account already linked to someone else shows the existing error banner.

The Connect button used /auth/google/login, which is the sign-in start.
A signed-in user hitting that URL either bounced off guest middleware or
landed on a 404. Settings now has its own connect route, and the OAuth
callback links the account when you are already signed in.
@paulocastellano
paulocastellano merged commit 175116e into main Sep 14, 2026
5 checks passed
@paulocastellano
paulocastellano deleted the fix/settings-google-connect-404 branch September 14, 2026 21:22
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.

1 participant