MCPcopy Create free account
hub / github.com/emwalker/digraph / doLogout

Function doLogout

next/lib/useSession.ts:28–32  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

26}
27
28function doLogout(url: string) {
29 return fetchJson<SessionData>(url, {
30 method: 'DELETE',
31 })
32}
33
34export default function useSession() {
35 const { data: session, isLoading } = useSWR(

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected