MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / requestToken

Function requestToken

src/plugins/pluginContext/www/PluginContext.js:71–78  ·  view source on GitHub ↗
(pluginId)

Source from the content-addressed store, hash-verified

69 generate: async function (pluginId, pluginJson) {
70 try {
71 function requestToken(pluginId) {
72 return new Promise((resolve, reject) => {
73 exec(resolve, reject, "Tee", "requestToken", [
74 pluginId,
75 pluginJson,
76 ]);
77 });
78 }
79
80 const uuid = await requestToken(pluginId);
81 return new _PluginContext(uuid);

Callers 1

PluginContext.jsFile · 0.85

Calls 1

execFunction · 0.50

Tested by

no test coverage detected