|
/**
|
|
* api/auth/[...nextauth]/route.ts
|
|
*/
|
|
|
|
import { authOptions } from "@/app/lib/auth"
|
|
import NextAuth from "next-auth"
|
|
|
|
|
|
// v4
|
|
const handler = NextAuth(authOptions)
|
|
export { handler as GET, handler as POST }
|
|
|
|
|
|
|
|
|
|
// v5
|
|
// export { GET, POST } from "@/app/lib/auth"
|