feat: implement user account center with authentication, subscription management, and EVM wallet integration.
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user