MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / mintKey

Function mintKey

e2e/cloud/api-key-validation-cache.test.ts:167–174  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

165 );
166
167 const mintKey = (name: string) =>
168 Effect.gen(function* () {
169 const created = yield* client.account.createApiKey({ payload: { name } });
170 yield* Effect.addFinalizer(() =>
171 client.account.revokeApiKey({ params: { apiKeyId: created.id } }).pipe(Effect.ignore),
172 );
173 return created;
174 });
175
176 const keyA = yield* mintKey("e2e validation-cache key A");
177 const keyB = yield* mintKey("e2e validation-cache key B");

Calls

no outgoing calls

Tested by

no test coverage detected