79712560

Date: 2025-07-23 21:05:30
Score: 1
Natty:
Report link

This work for me:

Try to put the logic such as AuthOptions at the different file example

/src/auth.ts

export const { handlers, signIn, signOut, auth } = NextAuth({})

/src/app/api/auth/[...nextauth]/route.ts


import { handlers } from "@/auth"
export const { GET, POST } = handlers
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: M Reza Muktasib