MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / buildCliAuthCode

Function buildCliAuthCode

freebuff/web/src/app/onboard/_helpers.ts:26–32  ·  view source on GitHub ↗
(
  fingerprintId: string,
  expiresAt: string,
  fingerprintHash: string,
)

Source from the content-addressed store, hash-verified

24}
25
26export function buildCliAuthCode(
27 fingerprintId: string,
28 expiresAt: string,
29 fingerprintHash: string,
30): string {
31 return `${fingerprintId}.${expiresAt}.${fingerprintHash}`
32}
33
34export function getCliAuthCodeHashPrefix(authCode: string): string {
35 return getCliAuthCodeHash(authCode).slice(0, 12)

Callers 2

helpers.test.tsFile · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected