We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f41c326 + d8efc8e commit 526dd08Copy full SHA for 526dd08
1 file changed
apps/ticket-admin/src/app/api/reissue/route.ts
@@ -22,7 +22,7 @@ export async function POST(req: Request) {
22
throw new Error("Token reissue failed");
23
}
24
25
- const setCookies = apiRes.headers.getSetCookie();
+ const setCookies = apiRes.headers.getSetCookie?.() ?? [];
26
27
const res = NextResponse.json(await apiRes.json(), {
28
status: apiRes.status,
0 commit comments