Skip to content

feat(api): Auth0-first account deletion saga - #63

Merged
Bitstachio merged 9 commits into
mainfrom
api/fix-del-auth
Sep 15, 2026
Merged

Bitstachio merged 9 commits into
mainfrom
api/fix-del-auth

Conversation

@Bitstachio

@Bitstachio Bitstachio commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Fixes Problem 1 (Auth0 identity deletion) from the account-deletion work outlined in the issue. Deletes the Auth0 user via the Management API (M2M, delete:users) as part of DELETE /users/me, using an Auth0-first saga with deletionStartedAt / auth0DeletedAt so leftovers are detectable and finishable via an hourly reconciler. Auth0-first (not Postgres-first) avoids JIT resurrection if Auth0 fails after the row is gone. Event/photo prep and Problem 2 (JWT/tombstone handling) are out of scope here.

Part of #37

Bitstachio and others added 8 commits September 12, 2026 11:00
Align integration suite filenames with the usual Jest *.spec.ts
pattern so the type sits in the middle (.integration.spec.ts)
instead of a custom -spec ending.

- Rename the four suites under test/integration/ and update
  jest-integration.json testRegex to match
- Drop the redundant *.integration-spec.ts ESLint override;
  **/*.spec.ts already covers the new names
- Refresh docs/testing.md naming references

No test behavior or coverage changes.
@github-actions

Copy link
Copy Markdown

API unit-test coverage

Metric Coverage
Statements 75.37% (909/1206)
Branches 57.8% (389/673)
Functions 78.15% (161/206)
Lines 73.92% (794/1074)

Unit suite only; controllers are exercised by the e2e suite.

@Bitstachio
Bitstachio merged commit 18185bb into main Sep 15, 2026
4 checks passed
@Bitstachio
Bitstachio deleted the api/fix-del-auth branch September 15, 2026 06:49
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