diff --git a/lib/auth-actions.ts b/lib/auth-actions.ts index eab16f0..e34bbc1 100644 --- a/lib/auth-actions.ts +++ b/lib/auth-actions.ts @@ -195,7 +195,8 @@ export async function logoutUser(): Promise { */ export async function getCurrentSession() { try { - const { auth } = await import('@/auth') + const { getServerSession } = await import('next-auth/next') + const { authOptions } = await import('@/pages/api/auth/[...nextauth]') const session = await getServerSession(authOptions) return session } catch (error) {