MCPcopy Index your code
hub / github.com/simstudioai/sim / isValidApiKeyFormat

Function isValidApiKeyFormat

apps/sim/lib/api-key/auth.ts:163–165  ·  view source on GitHub ↗
(apiKeyValue: string)

Source from the content-addressed store, hash-verified

161 * @returns boolean - true if the format appears valid
162 */
163export function isValidApiKeyFormat(apiKeyValue: string): boolean {
164 return typeof apiKeyValue === 'string' && apiKeyValue.length > 10 && apiKeyValue.length < 200
165}
166
167export async function createWorkspaceApiKey(params: {
168 workspaceId: string

Callers 1

auth.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected