c7b02ecfb6
Move the NextAuth v4 configuration from the route handler (src/app/api/auth/[...nextauth]/route.ts) into a dedicated module (src/lib/auth/auth.ts) to establish a single source of truth. The route file now simply re-exports the handler from the shared module, keeping provider setup, JWT/session callbacks, and environment variable references in one reusable location.
3 lines
87 B
TypeScript
3 lines
87 B
TypeScript
import { handler } from "@/lib/auth/auth";
|
|
export { handler as GET, handler as POST };
|