import NextAuth, { NextAuthConfig, Session } from 'next-auth'; import authConfig from './auth.config'; export const { handlers, signIn, signOut, auth, }: { handlers: any; signIn: (provider?: string) => Promise; signOut: () => Promise; auth: () => Promise; } = NextAuth({ session: { strategy: 'jwt' }, ...(authConfig as NextAuthConfig), });