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

Function doLogin

next/lib/useSession.ts:21–26  ·  view source on GitHub ↗
(url: string, { arg }: { arg: string })

Source from the content-addressed store, hash-verified

19}
20
21function doLogin(url: string, { arg }: { arg: string }) {
22 return fetchJson<SessionData>(url, {
23 method: 'POST',
24 body: JSON.stringify({ username: arg }),
25 })
26}
27
28function doLogout(url: string) {
29 return fetchJson<SessionData>(url, {

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected