Repository navigation
Self-service account deletion; remove the public template Terms page - #141
Merged
Merged
Conversation
Deleting an account used to mean filing a request that nothing read (the
deletionRequests docs had no reader) or emailing an unconfirmed inbox, and the
Deck had no way to do it at all.
- Worker POST /api/account/delete (signed in within the last 5 minutes,
body {"confirm":"DELETE"}): wipes the personal workspace's graph, monitors and
API keys; deletes team workspaces and vaults the user holds alone; removes
their member docs elsewhere and every Firestore record that names them; then
deletes the Firebase Auth account last. A workspace they created that still
has members blocks deletion (409) before anything is touched. Retrying
finishes a half-done deletion.
- Each Durable Object answers an internal /__wipe route that no user-facing
forward can reach (they all use fixed paths).
- Deck Settings > Data > Delete account, the older settings page, and the
"Verify your email" screen (unverified sign-ups could not delete at all) use
public/js/account-delete.js: type DELETE, sign in again if needed, then this
account's browser data is cleared.
- Terms/Privacy/Docs describe the self-service path (wording only, no
TOS_VERSION bump).
- public/legal/terms-of-service.html was an unfilled template with 21
"[SPECIFY ...]" placeholders served publicly; moved to unused-stuff/ and the
URL now redirects to /terms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before this, users had no working way to delete an account. The Deck had no option. The older settings page filed a
deletionRequestsdoc that nothing read. The Terms said to email contact@darknode.ai, an inbox that isn't confirmed.What it does
POST /api/account/delete. It needs a sign-in from the last 5 minutes and{"confirm":"DELETE"}. It deletes, in order:/__wiperoute. Every user-facing forward builds a fixed path (/or/findings), so outside requests can't reach it.public/js/account-delete.js: Deck Settings > Data > Delete account, the older settings page, and the Verify-your-email screen (unverified sign-ups couldn't delete before). The user types DELETE and signs in again if the sign-in is old. Only this account's browser data is then cleared, so other accounts on a shared browser keep theirs.TOS_VERSIONbump./legal/terms-of-service.htmlwas an unfilled template with 21[SPECIFY ...]placeholders, live on darknode.ai and contradicting the real Terms. It's moved tounused-stuff/and the URL now 301s to/termson both hosting sites.Verified
npm test: 5174 passed. 8 new tests cover: what's deleted and what's kept, the blocking workspace, the stale sign-in, the missing confirm word, a failure stopping before the Auth delete, a retry, and the wipe route guard.Not tested: the Deck Settings row with a verified account (Test Mode has no account, so the row is hidden; it uses the same module), and re-sign-in by Google popup.
Deploy: Worker first, then hosting. Production not deployed.