MCPcopy Create free account
hub / github.com/SAP-samples/cloud-sdk-js / basicHeader

Function basicHeader

scripts/fetch-service-spec.ts:35–38  ·  view source on GitHub ↗
(username: string, password: string)

Source from the content-addressed store, hash-verified

33}
34
35function basicHeader(username: string, password: string): string {
36 const encoded = Buffer.from(`${username}:${password}`).toString('base64');
37 return 'Basic ' + encoded;
38}
39async function writeServiceDefintion(
40 specRoot: string,
41 content: string,

Callers 1

getBasicHeaderFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected