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

Function isOpaqueCliAuthCodeToken

freebuff/web/src/lib/cli-auth-code-shape.ts:4–6  ·  view source on GitHub ↗
(authCode: string)

Source from the content-addressed store, hash-verified

2const CLI_AUTH_CODE_HASH_RE = /^[a-f0-9]{64}$/i
3
4export function isOpaqueCliAuthCodeToken(authCode: string): boolean {
5 return OPAQUE_CLI_AUTH_CODE_TOKEN_RE.test(authCode.trim())
6}
7
8export function parseCliAuthCodeShape(authCode: string): {
9 fingerprintId: string

Callers 2

resolveCliAuthCodeFunction · 0.90
isCliAuthCodeCandidateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected