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

Function buildCliAuthCode

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

Source from the content-addressed store, hash-verified

12}
13
14export function buildCliAuthCode(
15 fingerprintId: string,
16 expiresAt: string,
17 fingerprintHash: string,
18): string {
19 return `${fingerprintId}.${expiresAt}.${fingerprintHash}`
20}
21
22export function isOpaqueCliAuthCodeToken(authCode: string): boolean {
23 return OPAQUE_CLI_AUTH_CODE_TOKEN_RE.test(authCode.trim())

Callers 2

helpers.test.tsFile · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected