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

Function logout

packages/shared/src/lib/user.ts:226–232  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

224}
225
226export async function logout(reason: string): Promise<void> {
227 const urlParams = reason ? `?${new URLSearchParams({ reason })}` : '';
228 await fetch(`${apiUrl}/v1/users/logout${urlParams}`, {
229 method: 'POST',
230 credentials: 'include',
231 });
232}
233
234export async function deleteAccount(): Promise<void> {
235 const res = await fetch(`${apiUrl}/v1/users/me`, {

Callers 1

AuthMockFunction · 0.90

Calls

no outgoing calls

Tested by 1

AuthMockFunction · 0.72