Skip to content

Add Google sign-in to Factorize - #430

Merged
asselstine merged 3 commits into
mainfrom
codex/google-sign-in
Nov 24, 2026
Merged

asselstine merged 3 commits into
mainfrom
codex/google-sign-in

Conversation

@asselstine

@asselstine asselstine commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

  • Add optional Google sign-in. Returning sign-ins use the stable Google subject. Existing Factorize accounts require their current password before Google is linked and retain their existing workspace.
  • New Google users choose a unique username. If Google cannot verify ongoing ownership of an external email address, Factorize confirms it in the initiating browser.
  • First-password setup requires a fresh proof of the linked Google account and a Factorize email confirmation in the same browser. For Google-managed recovery, password recovery continues to require both proofs after adding a password.
  • When a Google-managed address changes, retire its previous recovery authority and links, preserve independently verified Factorize addresses, and pause recovery if the new address belongs to another account.
  • Rate-limit Google authorization starts before database allocation and clean up expired attempts in bounded scheduled batches.

Validation

235 API tests on isolated PostgreSQL, including mocked Google/Postmark, and 37 Playwright tests passed locally. Generated OpenAPI and documentation checks passed. No live Google calls, email delivery, or deployment were used for validation.

Activation

Register https://app.factorize.sh/oauth/google/sign-in/callback with the Google Web application OAuth client and configure its consent screen. Set the Worker secrets GOOGLE_SIGN_IN_CLIENT_ID and GOOGLE_SIGN_IN_CLIENT_SECRET. Normal deployment applies migration 0104. Keep Postmark configured for email confirmation.

@asselstine
asselstine merged commit 017a551 into main Nov 24, 2026
8 checks passed
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