'Next Auth continues to give "[next-auth][warn][NO_SECRET] https://next-auth.js.org/warnings#no_secret"

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


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source