Magic Link Authentication in Next.js with NextAuth and MongoDB