0

I am using Next-Auth in a next js website I am building. I have defined this in my .env

NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=[secret]

however I am still getting the no secret warning every time I login. Does anyone know why this might be and if there is something I am missing? Thanks

Warning:

[next-auth][warn][NO_SECRET] 
https://next-auth.js.org/warnings#no_secret
  • Is this in production or development? Also how are you using the `env` and running your dev server? If you are running it via a build, you'll need to re-build it. – Hughes May 16 '22 at 20:38
  • Was a development, I ended up figuring it out eventually was a issue with yarn. – Ted Johnson May 17 '22 at 01:24

0 Answers0