fp/services/next/app/api/auth/[...nextauth]/route.ts

18 lines
267 B
TypeScript

/**
* 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"