Next-auth issues and update needed for next.js v15

Firstly, I want to say that I’m really enjoying the course—it’s well-structured and engaging. I understand that some updates in the tech world are inevitable, so it’s not surprising to encounter a few changes.

That said, I ran into significant issues with the next-auth section of the tutorial. After troubleshooting for a while, I realised that the instructions provided in the course no longer work due to major changes in the next-auth package and its compatibility with Next.js version 15

Here are the key issues I noticed:

  1. You now need to install next-auth@beta to work with the App Router in Next.js v15.

  2. NextAuth now requires an auth.ts file in the project’s root directory to define the configurations.

  3. The route.ts file and its structure has changed.

For anyone following the tutorial, I recommend checking the official NextAuth documentation. I hope the course can be updated to reflect these changes. Thank you.