Skip to content

Commit 51e4bef

Browse files
committed
fix: update error response for token reissue to return JSON with status 500
1 parent 4359d99 commit 51e4bef

File tree

1 file changed

+1
-1
lines changed
  • apps/ticket-admin/src/app/api/reissue

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function POST(req: Request) {
1919
);
2020

2121
if (!apiRes.ok) {
22-
return { ok: false, message: "Token reissue failed" };
22+
return NextResponse.json({ ok: false, message: "Token reissue failed" }, { status: 500 });
2323
}
2424

2525
const setCookies = apiRes.headers.getSetCookie?.() ?? [];

0 commit comments

Comments
 (0)