MCPcopy Create free account
hub / github.com/observablehq/framework / getObservableApiKey

Method getObservableApiKey

test/mocks/authEffects.ts:23–27  ·  view source on GitHub ↗
(effects: AuthEffects = this)

Source from the content-addressed store, hash-verified

21 }
22
23 async getObservableApiKey(effects: AuthEffects = this) {
24 if (effects !== this) throw new Error("don't pass unrelated effects to mock effects methods");
25 if (!this.observableApiKey) return null;
26 return {source: "test" as const, key: this.observableApiKey};
27 }
28 async setObservableApiKey(info) {
29 this.setApiKeyDeferred.resolve(info);
30 this.observableApiKey = info?.key;

Callers 2

whoamiFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected