MCPcopy
hub / github.com/NginxProxyManager/nginx-proxy-manager / buildAuthHeader

Function buildAuthHeader

frontend/src/api/backend/base.ts:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36function buildAuthHeader(): Record<string, string> | undefined {
37 if (AuthStore.token) {
38 return { Authorization: `Bearer ${AuthStore.token.token}` };
39 }
40 return {};
41}
42
43function buildBody(data?: Record<string, any>): string | undefined {
44 if (data) {

Callers 5

baseGetFunction · 0.85
downloadFunction · 0.85
postFunction · 0.85
putFunction · 0.85
delFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected