MCPcopy Create free account
hub / github.com/dailydotdev/apps / deleteAccount

Function deleteAccount

packages/shared/src/lib/user.ts:234–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234export 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
245type ProfileRequestResponse = {
246 data?: {

Callers 1

AccountSecurityDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected