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

Method getToken

packages/computer/src/artifacts/client.ts:87–87  ·  view source on GitHub ↗

* Get a single token's metadata by id. The binding has no direct * accessor and no token-list cursor, so this filters the page * returned by `listTokens()` and throws `NotFoundError` on a miss.

(name: string, id: string)

Source from the content-addressed store, hash-verified

85 * returned by `listTokens()` and throws `NotFoundError` on a miss.
86 */
87 getToken(name: string, id: string): Promise<ArtifactsTokenInfo>;
88 /** Revoke a token by id or plaintext. Returns false on a miss. */
89 revokeToken(name: string, tokenOrId: string): Promise<boolean>;
90

Callers 3

getTokenMethod · 0.65
client.test.tsFile · 0.65
runTokenGetFunction · 0.65

Implementers 1

WorkspaceArtifactsStubpackages/computer/src/stub.ts

Calls

no outgoing calls

Tested by

no test coverage detected