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

Function personalKeyRecord

apps/sim/lib/api-key/service.test.ts:57–66  ·  view source on GitHub ↗
(overrides: Partial<Record<string, unknown>> = {})

Source from the content-addressed store, hash-verified

55import { authenticateApiKeyFromHeader, updateApiKeyLastUsed } from '@/lib/api-key/service'
56
57function personalKeyRecord(overrides: Partial<Record<string, unknown>> = {}) {
58 return {
59 id: 'key-1',
60 userId: 'user-1',
61 workspaceId: null as string | null,
62 type: 'personal',
63 expiresAt: null as Date | null,
64 ...overrides,
65 }
66}
67
68describe('authenticateApiKeyFromHeader', () => {
69 beforeEach(() => {

Callers 1

service.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected