Closed black-arm closed 1 year ago
the redirect work if we deleted secret variable from [...nextauth].ts and in .env.local we added the NEXTAUTH_SECRET
how do we want to proceed? Do we update the .env and documentation or do we find to way to work with secret variable?
Finding a way that does not require an extra variable would be great :)
Still thinking about it... we might entirely replace SECRET
with NEXTAUTH_SECRET
and leave a value there already in .env.example
to keep onboarding easy
Ok. So, I replace SECRET with NEXTAUTH_SECRET in .env.example and remove
secret: process.env.SECRET
in [...nextauth].ts
Exactly, and you can also give a default value to NEXTAUTH_SECRET
in .env.example
so that it just works :)
Thank you for the PR!
When I navigate to a protected page I now get this error, we should probably make sure it redirects to the homepage. Any idea?