(body: Record<string, unknown>)
| 297 | |
| 298 | describe("startAuthorizationCodeFlow persistence", () => { |
| 299 | function tokenFetch(body: Record<string, unknown>): typeof fetch { |
| 300 | return (async () => |
| 301 | new Response(JSON.stringify(body), { |
| 302 | status: 200, |
| 303 | headers: { "content-type": "application/json" }, |
| 304 | })) as unknown as typeof fetch; |
| 305 | } |
| 306 | |
| 307 | it("overwrites the OAuth block on fresh login (no inherited refresh_token)", async () => { |
| 308 | // Pre-seed a prior session whose refresh_token must NOT leak into |