Skip to content

Commit ac5022c

Browse files
committed
retry test
1 parent 8daddc0 commit ac5022c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

integration/tests/api-keys/auth.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ test.describe('auth.protect() with API keys @nextjs', () => {
209209
await u.po.expect.toBeSignedIn();
210210

211211
// GET endpoint (only accepts api_key)
212-
const getRes = await u.page.request.get(url.toString());
212+
const getRes = await u.page.request.get(url.toString(), {
213+
headers: {
214+
'Sec-Fetch-Dest': 'document',
215+
},
216+
});
213217
expect(getRes.status()).toBe(401);
214218

215219
// POST endpoint (accepts both api_key and session_token)

0 commit comments

Comments
 (0)