Skip to content

Commit 5335f47

Browse files
committed
2 parents a413acd + d34599b commit 5335f47

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • apps/ticket-admin/src/app/api/reissue

apps/ticket-admin/src/app/api/reissue/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export async function POST(req: Request) {
1818
},
1919
);
2020

21+
if (!apiRes.ok) {
22+
throw new Error("Token reissue failed");
23+
}
24+
2125
const setCookies = apiRes.headers.getSetCookie();
2226

2327
const res = NextResponse.json(await apiRes.json(), {

0 commit comments

Comments
 (0)