This commit is contained in:
+4
-1
@@ -1,6 +1,9 @@
|
||||
import { auth } from "@/auth";
|
||||
import NextAuth from "next-auth";
|
||||
import { authConfig } from "@/auth.config";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
const { auth } = NextAuth(authConfig);
|
||||
|
||||
export default auth((req) => {
|
||||
const isLoggedIn = !!req.auth;
|
||||
const pathname = req.nextUrl.pathname;
|
||||
|
||||
Reference in New Issue
Block a user