()
| 232 | } |
| 233 | |
| 234 | export async function deleteAccount(): Promise<void> { |
| 235 | const res = await fetch(`${apiUrl}/v1/users/me`, { |
| 236 | method: 'DELETE', |
| 237 | credentials: 'include', |
| 238 | }); |
| 239 | |
| 240 | if (!res.ok) { |
| 241 | throw new Error('Failed to delete account'); |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | type ProfileRequestResponse = { |
| 246 | data?: { |
no outgoing calls
no test coverage detected