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

Function mintEmulatorApiKey

e2e/scenarios/connect-handoff.test.ts:111–117  ·  view source on GitHub ↗
(client: EmulatorClient)

Source from the content-addressed store, hash-verified

109});
110
111const mintEmulatorApiKey = (client: EmulatorClient) =>
112 Effect.gen(function* () {
113 const credential = yield* Effect.promise(() => client.credentials.mint({ type: "api-key" }));
114 const token = credential.token;
115 if (!token) throw new Error(`emulator credential mint failed: ${JSON.stringify(credential)}`);
116 return token;
117 });
118
119scenario(
120 "Connect · the agentic handoff URL opens this deployment's add-account flow and the pasted key works",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected