Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

relay.test.ts

16 lines559 Bytes

1import { describe, expect, it } from "vite-plus/test";
2import * as OpenApi from "effect/unstable/httpapi/OpenApi";
3​
4import { RelayApi } from "./relay.ts";
5​
6describe("RelayApi security", () => {
7 it("describes DPoP access tokens using the HTTP DPoP authorization scheme", () => {
8 const document = OpenApi.fromApi(RelayApi);
9​
10 expect(document.components.securitySchemes?.relayDpop).toEqual({
11 type: "http",
12 scheme: "DPoP",
13 description: "DPoP-bound access token. Requests must also include the DPoP proof JWT header.",
14 });
15 });
16});