MCPcopy
hub / github.com/lissy93/web-check / buildAuth

Function buildAuth

api/_common/http.js:7–10  ·  view source on GitHub ↗
(auth)

Source from the content-addressed store, hash-verified

5const DEFAULT_TIMEOUT = 60000;
6
7const buildAuth = (auth) => {
8 if (!auth?.username) return null;
9 return 'Basic ' + Buffer.from(`${auth.username}:${auth.password}`).toString('base64');
10};
11
12const appendParams = (url, params) => {
13 if (!params) return url;

Callers 1

sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected