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

Function getAuthHeaders

ui/node-react/client/src/api.js:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10function getAuthHeaders() {
11 const token = localStorage.getItem('token');
12 return token ? { Authorization: `Bearer ${token}` } : {};
13}
14
15// Auth
16export async function login(email, password) {

Callers 2

uploadDocumentsFunction · 0.85
downloadDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected