Skip to content

Web: sign in with Google and Apple only - #86

Merged
broisnees merged 1 commit into
monorepofrom
web-auth-google-apple
Nov 21, 2026
Merged

broisnees merged 1 commit into
monorepofrom
web-auth-google-apple

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Stacked on #85.

  • Removes email/password sign-in, /signup and GitHub; the login page offers Continue with Apple and Continue with Google (each shown only when configured)
  • Adds Sign in with Apple: the client secret is an ES256 JWT signed from the .p8 key (src/lib/auth/apple.ts, jose); appleid.apple.com added to trustedOrigins
  • Account linking trusts Google and Apple, so the 6 existing email/password accounts are reached by signing in with Google/Apple on the same address (license stays attached)
  • Account page "Sign-in methods" lists Google and Apple
  • Env: APPLE_CLIENT_ID, APPLE_TEAM_ID, APPLE_KEY_ID, APPLE_PRIVATE_KEY, APPLE_APP_BUNDLE_IDENTIFIER added; GITHUB_CLIENT_* and the unused DATABASE_URL removed

Verified: bun run build, oxlint --type-aware --type-check pass.

Production Worker secrets were updated separately (Google, Dodo, Better Auth, license key — the license key verified against License.publicKeyBase64). Apple secrets still need to be added once the Services ID and key exist.

- Remove email/password sign-in, the signup page and GitHub
- Add Sign in with Apple (client-secret JWT signed from the .p8 key via jose)
- Link Google/Apple to existing accounts by email (old email/password users keep their license)
- Server env: APPLE_* added, GITHUB_CLIENT_* and unused DATABASE_URL dropped
- .env.example and wrangler.toml list the new secrets
@broisnees
broisnees merged commit b96dbfb into monorepo Nov 21, 2026
3 checks passed
broisnees added a commit that referenced this pull request Nov 21, 2026
Land #86–#90 on main (auth, feed, donate, settings redesign, features page)
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