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

Function register

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

Source from the content-addressed store, hash-verified

25}
26
27export async function register(email, password) {
28 const res = await fetch(`${API_BASE}/auth/register`, {
29 method: 'POST',
30 headers: { 'Content-Type': 'application/json' },
31 body: JSON.stringify({ email, password }),
32 });
33 const data = await res.json();
34 if (!res.ok) throw new Error(data.error || 'Registration failed');
35 return data;
36}
37
38export async function getMe() {
39 const res = await fetch(`${API_BASE}/auth/me`, { headers: getHeaders() });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected