MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isValidApiKey

Function isValidApiKey

source code/utils/auth.ts:1091–1094  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

1089)
1090
1091function isValidApiKey(apiKey: string): boolean {
1092 // Only allow alphanumeric characters, dashes, and underscores
1093 return /^[a-zA-Z0-9-_]+$/.test(apiKey)
1094}
1095
1096export async function saveApiKey(apiKey: string): Promise<void> {
1097 if (!isValidApiKey(apiKey)) {

Callers 1

saveApiKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected