MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / isValidApiKey

Function isValidApiKey

src/utils/auth.ts:1139–1142  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

1137)
1138
1139function isValidApiKey(apiKey: string): boolean {
1140 // Only allow alphanumeric characters, dashes, and underscores
1141 return /^[a-zA-Z0-9-_]+$/.test(apiKey)
1142}
1143
1144export async function saveApiKey(apiKey: string): Promise<void> {
1145 if (!isValidApiKey(apiKey)) {

Callers 1

saveApiKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected