MCPcopy Create free account
hub / github.com/cloudflare/computer / createToken

Function createToken

packages/computer/src/artifacts/client.ts:171–174  ·  view source on GitHub ↗
(name, scope, ttl)

Source from the content-addressed store, hash-verified

169 },
170
171 async createToken(name, scope, ttl) {
172 const handle = await binding.get(scopedName(sessionId, name));
173 return handle.createToken(scope, ttl);
174 },
175
176 async listTokens(name) {
177 const handle = await binding.get(scopedName(sessionId, name));

Callers

nothing calls this directly

Calls 3

scopedNameFunction · 0.85
getMethod · 0.65
createTokenMethod · 0.65

Tested by

no test coverage detected