MCPcopy Create free account
hub / github.com/simstudioai/sim / createBasicAuthHeader

Function createBasicAuthHeader

apps/sim/tools/servicenow/utils.ts:7–10  ·  view source on GitHub ↗
(username: string, password: string)

Source from the content-addressed store, hash-verified

5 * @returns Base64 encoded Basic Auth header value
6 */
7export function createBasicAuthHeader(username: string, password: string): string {
8 const credentials = Buffer.from(`${username}:${password}`).toString('base64')
9 return `Basic ${credentials}`
10}

Callers 8

aggregate.tsFile · 0.90
read_record.tsFile · 0.90
update_record.tsFile · 0.90
create_record.tsFile · 0.90
delete_record.tsFile · 0.90
route.tsFile · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected