It seems like your Next.js application is not able to find the AUTH_SECRET environment variable. Here's how you can set it:
Create a .env.local file in the root of your project if it doesn't exist already.
Add
AUTH_SECRET=your_secret_here
to the file, replacing your_secret_here with your actual secret.
Save the file.
Restart your Next.js server.
Here's the code to add to your .env.local file:
AUTH_SECRET=your_secret_here
Remember to replace your_secret_here with your actual secret.
If you've already done this and it's still not working, make sure that you're correctly loading the environment variables in your Next.js application. You can use the next.config.js file to do this:
`module.exports = {
env: {
AUTH_SECRET: process.env.AUTH_SECRET,
},
}`