MCPcopy
hub / github.com/anomalyco/opencode / revokeAppToken

Function revokeAppToken

packages/opencode/src/cli/cmd/github.handler.ts:1580–1591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1578 }
1579
1580 async function revokeAppToken() {
1581 if (!appToken) return
1582
1583 await fetch("https://api.github.com/installation/token", {
1584 method: "DELETE",
1585 headers: {
1586 Authorization: `Bearer ${appToken}`,
1587 Accept: "application/vnd.github+json",
1588 "X-GitHub-Api-Version": "2022-11-28",
1589 },
1590 })
1591 }
1592 })
1593})

Callers 1

github.handler.tsFile · 0.70

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected