Files
cozsweet-frontend-nextjs/src/app/api/auth/[...nextauth]/route.ts
T
admin c7b02ecfb6 refactor(auth): extract NextAuth config to shared lib module
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.
2026-06-12 17:56:01 +08:00

3 lines
87 B
TypeScript

import { handler } from "@/lib/auth/auth";
export { handler as GET, handler as POST };