Skip to content

Remove Facebook OAuth, keep Google-only - #52

Merged
YonatanHen merged 4 commits into
stagingfrom
dev/remove-facebook-oauth
Aug 1, 2026
Merged

Remove Facebook OAuth, keep Google-only#52
YonatanHen merged 4 commits into
stagingfrom
dev/remove-facebook-oauth

Conversation

@YonatanHen

Copy link
Copy Markdown
Owner

Summary

Facebook OAuth was scaffolded but never wired up in production (the redirect-HTTPS requirement made it poor value for a demo). The team has decided not to build it out at all, so this strips it entirely: the passport-facebook strategy, the facebookId model field, provider-config plumbing (env vars, compose, .env.example), and every code/doc/test reference — while keeping Google OAuth and its account-linking security behavior unchanged.

Stacked on #51 (dev/user-account-management) — this branch was created on top of it, so this PR's commit history includes that PR's commit until #51 merges. Only the second commit (chore(oauth): remove Facebook sign-in, keep Google-only) is new here; please merge #51 first, or review just that commit.

Test plan

  • npm run test — 475 passing (server + client)
  • Verified no remaining facebook/Facebook reference anywhere in the repo (package-lock.json regenerated via npm install)
  • E2E (Playwright) — not run locally; will run in CI on this PR

Extends the already-shipped PATCH/DELETE /api/v1/users/:id API with
username and email editing, current-password verification before a
password change, OAuth accounts setting an initial password, and
cascade-deleting a user's posts/comments/likes on account deletion.
Deletion requires re-entering the password (or, for OAuth-only
accounts, typing the username) as confirmation.

Adds the client side that never existed for this API: /account
(self, editable) and /users/:id (anyone, read-only), reached by
making every username byline in the app clickable.
Password fields (login, signup, account update/delete) were plain
text inputs showing the value in the clear, and AutoForm rendered
labels as raw camelCase schema keys (e.g. "currentPassword"). Adds a
shared PasswordInput with a show/hide toggle used everywhere a
password is entered, and humanizes AutoForm's field labels.
ChatRoom.test.tsx's render wrapper was typed as typeof rtlRender,
whose generic overloads don't survive a plain arrow-function
assignment. Typed it explicitly against ReactElement/RenderOptions
instead. The cascade-delete test's postService.create calls were
missing tags, required by CreatePost's inferred (post-default) type
even though the schema defaults it at parse time.
Facebook was scaffolded but never wired up in production (Facebook's
HTTPS redirect requirement made it poor value for a demo), and the
team has decided not to build it out. Strips the passport-facebook
strategy, the facebookId model field, provider-config plumbing
(env vars, compose, .env.example), and every code/doc/test reference,
while keeping Google OAuth and its account-linking security behavior
unchanged. package-lock.json regenerated via npm install after
dropping passport-facebook / @types/passport-facebook.
@YonatanHen
YonatanHen force-pushed the dev/remove-facebook-oauth branch from 5bef746 to aa44952 Compare July 31, 2026 15:29
@YonatanHen
YonatanHen merged commit fbde9f4 into staging Aug 1, 2026
5 checks passed
@YonatanHen
YonatanHen deleted the dev/remove-facebook-oauth branch August 1, 2026 11:40
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