MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isValidKey

Function isValidKey

src/utils/localValidate.ts:49–56  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

47
48/** Returns true iff key would pass validateKey (no throw). Useful for guards. */
49export function isValidKey(key: string): boolean {
50 try {
51 validateKey(key)
52 return true
53 } catch {
54 return false
55 }
56}

Callers 5

checkPermissionsFunction · 0.85
checkPermissionsFunction · 0.85
validateAndAdvanceFunction · 0.85
handleKeySubmitFunction · 0.85

Calls 1

validateKeyFunction · 0.70

Tested by

no test coverage detected