refactor: replace custom authentication middleware with NextAuth, remove unused authentication pages, and update matcher configuration

This commit is contained in:
2025-03-23 18:06:27 +05:00
parent 020d74c5e2
commit 32bb01b656
8 changed files with 34 additions and 37 deletions

View File

@ -0,0 +1,5 @@
import { authOptions } from "@/app/auth";
import NextAuth from "next-auth";
const handler = NextAuth(authOptions);
export { handler as GET, handler as POST };