feat(profile): add Danger zone account deletion UI

This commit is contained in:
2026-07-26 10:20:56 +02:00
parent ab8cdea214
commit e2533bd1a8
3 changed files with 84 additions and 1 deletions

View File

@@ -106,6 +106,10 @@ export const api = {
getProfile: () => request<Profile>("/api/profile"),
updateProfile: (profile: Profile) =>
request<Profile>("/api/profile", { method: "PUT", body: JSON.stringify(profile) }),
// Permanently deletes the signed-in user's entire account. The caller is
// responsible for following a successful call with a real logout
// navigation -- this does not touch the session cookie (see Profile.tsx).
deleteProfile: () => request<void>("/api/profile", { method: "DELETE" }),
// Review queue -- cursor-paginated: pass the previous page's next_cursor
// as `before` to fetch the next one. Fetching every activity's laps and