(buf: Uint8Array)
| 100 | }; |
| 101 | |
| 102 | const b64url = (buf: Uint8Array): string => |
| 103 | btoa(String.fromCharCode(...buf)) |
| 104 | .replaceAll("+", "-") |
| 105 | .replaceAll("/", "_") |
| 106 | .replaceAll("=", ""); |
| 107 | |
| 108 | test("MCP OAuth opaque-bearer flow authenticates /mcp end-to-end", async () => { |
| 109 | const cookie = await signUp("oauth@env.test"); |