MCPcopy
hub / github.com/simstudioai/sim / createLegacyApiKey

Function createLegacyApiKey

packages/testing/src/factories/permission.factory.ts:329–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 * Creates test API key data.
328 */
329export function createLegacyApiKey(): { key: string; prefix: string } {
330 const random = shortId(24)
331 return {
332 key: `sim_${random}`,
333 prefix: 'sim_',
334 }
335}
336
337/**
338 * Creates test encrypted format API key data.

Callers 1

auth.test.tsFile · 0.90

Calls 1

shortIdFunction · 0.90

Tested by

no test coverage detected