MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getAuthHeaders

Function getAuthHeaders

src/services/utils/http.ts:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29export function getAuthHeaders(): Record<string, string> {
30 const token = resolveToken()
31 if (!token) return {}
32 return { Authorization: `Bearer ${token}` }
33}
34
35export function getBaseUrl(): string {
36 return _baseUrl

Callers 6

http.test.tsFile · 0.90
getFunction · 0.85
postFunction · 0.85
delFunction · 0.85
putFunction · 0.85
patchFunction · 0.85

Calls 1

resolveTokenFunction · 0.85

Tested by

no test coverage detected