(authType: 'session' | 'internal_jwt')
| 73 | } |
| 74 | |
| 75 | function authAs(authType: 'session' | 'internal_jwt') { |
| 76 | hybridAuthMockFns.mockCheckSessionOrInternalAuth.mockResolvedValue({ |
| 77 | success: true, |
| 78 | userId: 'user-1', |
| 79 | authType, |
| 80 | }) |
| 81 | } |
| 82 | |
| 83 | function callPost(body: Record<string, unknown>) { |
| 84 | const req = new NextRequest('http://localhost:3000/api/table/tbl_1/rows', { |