MCPcopy Index your code
hub / github.com/simstudioai/sim / patAuthHeader

Function patAuthHeader

apps/sim/connectors/azure-devops/azure-devops.ts:91–93  ·  view source on GitHub ↗

* Builds the Azure DevOps PAT auth header. ADO PATs authenticate via HTTP Basic * with an empty username and the token as the password.

(accessToken: string)

Source from the content-addressed store, hash-verified

89 * with an empty username and the token as the password.
90 */
91function patAuthHeader(accessToken: string): string {
92 return `Basic ${Buffer.from(`:${accessToken}`).toString('base64')}`
93}
94
95/**
96 * Normalizes the configured content type, defaulting to wiki pages.

Callers 9

listWikisFunction · 0.85
fetchWikiPageETagFunction · 0.85
queryWorkItemIdsFunction · 0.85
fetchWorkItemsBatchFunction · 0.85
listRepositoriesFunction · 0.85
listRepositoryBlobsFunction · 0.85
getFileDocumentFunction · 0.85
listWikiPagesFunction · 0.85
azure-devops.tsFile · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected