MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / login

Function login

ui/node-react/client/src/api.js:16–25  ·  view source on GitHub ↗
(email, password)

Source from the content-addressed store, hash-verified

14
15// Auth
16export async function login(email, password) {
17 const res = await fetch(`${API_BASE}/auth/login`, {
18 method: 'POST',
19 headers: { 'Content-Type': 'application/json' },
20 body: JSON.stringify({ email, password }),
21 });
22 const data = await res.json();
23 if (!res.ok) throw new Error(data.error || 'Login failed');
24 return data;
25}
26
27export async function register(email, password) {
28 const res = await fetch(`${API_BASE}/auth/register`, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected