chore: update ENV.md for NextAuth URL configuration, remove debug logging from middleware, and adjust session token handling in auth middleware
This commit is contained in:
@@ -40,8 +40,6 @@ export default async function middleware(request: NextRequest) {
|
||||
// Vérifier l'authentification avec NextAuth v5
|
||||
const session = await getAuthSession(request);
|
||||
|
||||
console.log(`[Middleware] Path: ${pathname}, Has session: ${!!session}`);
|
||||
|
||||
if (!session) {
|
||||
if (pathname.startsWith("/api/")) {
|
||||
return NextResponse.json(
|
||||
|
||||
Reference in New Issue
Block a user