feat: implement user account center with authentication, subscription management, and EVM wallet integration.

This commit is contained in:
2569718930@qq.com
2026-03-17 14:32:15 +08:00
parent 217414408c
commit 7510e0a1e0
3 changed files with 19 additions and 6 deletions
+6
View File
@@ -94,6 +94,12 @@ async function handleSupabaseAuthGate(request: NextRequest) {
if (isPublicPage(pathname)) {
return NextResponse.next();
}
if (pathname.startsWith("/api/")) {
const authHeader = String(request.headers.get("authorization") || "").trim();
if (/^bearer\s+\S+/i.test(authHeader)) {
return NextResponse.next();
}
}
const response = NextResponse.next({
request: {