We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e08051 commit d34599bCopy full SHA for d34599b
1 file changed
apps/ticket-admin/src/app/api/reissue/route.ts
@@ -18,6 +18,10 @@ export async function POST(req: Request) {
18
},
19
);
20
21
+ if (!apiRes.ok) {
22
+ throw new Error("Token reissue failed");
23
+ }
24
+
25
const setCookies = apiRes.headers.getSetCookie();
26
27
const res = NextResponse.json(await apiRes.json(), {
0 commit comments