Skip to content

Scheduling infrastructure for absolutely everyone.

fix(api): return 401 instead of 409 for unauthenticated /api/me requests (#29538)

Chayan Das4026669e687c
diff --git a/apps/web/app/api/me/route.ts b/apps/web/app/api/me/route.ts
index f4f02d38187..610ad08aaae 100644
--- a/apps/web/app/api/me/route.ts
+++ b/apps/web/app/api/me/route.ts
@@ -17,7 +17,7 @@ async function getHandler() {
const session = await getServerSession({ req: legacyReq });
if (!session) {
- return NextResponse.json({ message: "Unauthorized" }, { status: 409 });
+ return NextResponse.json({ message: "Unauthorized" }, { status: 401 });
}
const preUserDate = performance.now();