MCPcopy Create free account
hub / github.com/tiann/hapi / authHeaders

Method authHeaders

cli/src/api/api.ts:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 private constructor(private readonly token: string) { }
29
30 private authHeaders(): Record<string, string> {
31 return buildHubRequestHeaders({
32 Authorization: `Bearer ${this.token}`,
33 'Content-Type': 'application/json'
34 })
35 }
36
37 async getOrCreateSession(opts: {
38 tag: string

Callers 4

getSessionMethod · 0.95
listResumableSessionsMethod · 0.95
getLocalResumeTargetMethod · 0.95
handoffSessionToLocalMethod · 0.95

Calls 1

buildHubRequestHeadersFunction · 0.90

Tested by

no test coverage detected