Allow guest city APIs and normalize auth probe responses

This commit is contained in:
2569718930@qq.com
2026-03-26 01:25:51 +08:00
parent 7caae4dceb
commit b146c637b6
2 changed files with 15 additions and 1 deletions
+8
View File
@@ -20,6 +20,14 @@ export async function GET(req: NextRequest) {
headers: auth.headers,
cache: "no-store",
});
if (res.status === 401 || res.status === 403) {
const response = NextResponse.json({
authenticated: false,
subscription_active: false,
points: 0,
});
return applyAuthResponseCookies(response, auth.response);
}
if (!res.ok) {
const raw = await res.text();
const response = NextResponse.json(