(body: unknown, headers?: Record<string, string>, status = 200)
| 67 | user: { id } as User, |
| 68 | authFailedResponse: null, |
| 69 | organizationId, |
| 70 | }); |
| 71 | } |
| 72 | |
| 73 | function makeUpstreamResponse(body: unknown, headers?: Record<string, string>, status = 200) { |
| 74 | return new Response(JSON.stringify(body), { |
| 75 | status, |
| 76 | headers: { 'content-type': 'application/json', ...headers }, |
| 77 | }); |