MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / authRequest

Function authRequest

src/Data/UserData.js:44–51  ·  view source on GitHub ↗
(path, body)

Source from the content-addressed store, hash-verified

42}
43
44async function authRequest(path, body) {
45 return fetch(path, {
46 method: "POST",
47 credentials: "include",
48 headers: {'Content-Type': 'application/json'},
49 ...(body && {body: JSON.stringify(body)}),
50 });
51}
52
53export async function login(email, password) {
54 const username = email.split('@')[0];

Callers 3

loginFunction · 0.85
registerResetFunction · 0.85
logoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected