MCPcopy Index your code
hub / github.com/anomalyco/opencode / createTestJwt

Function createTestJwt

packages/opencode/test/plugin/codex.test.ts:11–15  ·  view source on GitHub ↗
(payload: object)

Source from the content-addressed store, hash-verified

9} from "../../src/plugin/openai/codex"
10
11function createTestJwt(payload: object): string {
12 const header = Buffer.from(JSON.stringify({ alg: "none" })).toString("base64url")
13 const body = Buffer.from(JSON.stringify(payload)).toString("base64url")
14 return `${header}.${body}.sig`
15}
16
17describe("plugin.codex", () => {
18 test("escapes provider errors in callback HTML", () => {

Callers 2

codex.test.tsFile · 0.85
fetchFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected