#upgrade next-auth v5 need help
1 messages · Page 1 of 1 (latest)
Based on the information provided in the extracts, it seems you're looking to upgrade to NextAuth.js v5. However, without the specific content of your auth.ts file, it's challenging to provide a detailed guide on what changes you might need to make.
However, I can provide some general advice based on the extracts. In one of the GitHub issues, a NextAuth.js maintainer suggested moving the authOptions configuration into a separate file, such as auth.ts, if it's causing issues in your route files (source (https://github.com/vercel/next.js/issues/50870)). This might be relevant if you're experiencing similar issues.
For more detailed instructions on upgrading to NextAuth.js v5, you might find the official upgrade guide (https://authjs.dev/guides/upgrade-to-v5) useful. This guide isn't included in the extracts, but it's a reliable source for this kind of information.