mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-06-29 13:43:58 +00:00
refactor: replace custom authentication middleware with NextAuth, remove unused authentication pages, and update matcher configuration
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import SignUpForm from "@/components/auth/signup-form";
|
||||
import { getAtollsWithIslands } from "@/queries/atoll";
|
||||
import Image from "next/image";
|
||||
import { redirect } from "next/navigation";
|
||||
|
@ -1,4 +0,0 @@
|
||||
import { auth } from "@/app/auth";
|
||||
import { toNextJsHandler } from "better-auth/next-js";
|
||||
|
||||
export const { GET, POST } = toNextJsHandler(auth.handler);
|
5
app/api/auth/[...nextauth]/route.ts
Normal file
5
app/api/auth/[...nextauth]/route.ts
Normal 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 };
|
Reference in New Issue
Block a user