It is recommended to use AuthOptions
instead of NextAuthOptions
for better clarity and consistency. You can import it directly using:
import { AuthOptions } from 'next-auth';
This helps align your code with the latest conventions in the NextAuth.js documentation.
export const authConfig: AuthOptions = {}