MCPcopy Index your code
hub / github.com/callstack/agent-device / basicAuthHeader

Function basicAuthHeader

src/cloud-webdriver/webdriver-utils.ts:12–14  ·  view source on GitHub ↗
(credentials: { username: string; accessKey: string })

Source from the content-addressed store, hash-verified

10}
11
12export function basicAuthHeader(credentials: { username: string; accessKey: string }): string {
13 return `Basic ${Buffer.from(`${credentials.username}:${credentials.accessKey}`).toString('base64')}`;
14}
15
16export function trimLeadingSlash(value: string): string {
17 let firstNonSlash = 0;

Callers 3

uploadBrowserStackAppFunction · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected