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

* api: me: fix return 401 instead of 409 for unauthorized requests in the me API route

Signed-off-by: Chayan Das <daschayan8837@gmail.com>

* undo import changes

Reorder imports for better organization.

---------

Signed-off-by: Chayan Das <daschayan8837@gmail.com>
Co-authored-by: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com>
This commit is contained in:
Chayan DasandBandhan Majumder authored and GitHub committed 2026-06-11 03:56:55 +00:00
1 parent 743f988d30
commit 4026669e68
1 file changed
+1 -1
+1 -1
View File
@@ -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();