feat: account deletion in settings + privacy policy with deletion link

This commit is contained in:
2026-07-17 15:47:29 -04:00
parent e79505d8b4
commit aa0af5db4f
49 changed files with 1152 additions and 2 deletions
+5
View File
@@ -69,6 +69,7 @@ interface AuthState {
blockUser: (userId: string) => Promise<void>;
unblockUser: (userId: string) => Promise<void>;
clearError: () => void;
deleteAccount: () => Promise<void>;
}
// ponytail: auto-subscribe to push notifications on auth
@@ -249,4 +250,8 @@ export const useAuthStore = create<AuthState>((set) => ({
unblockUser: async (userId) => {
await api.delete(`/users/me/blocks/${userId}`);
},
deleteAccount: async () => {
await api.delete("/auth/me");
},
}));