Reason: A secret is a random string used to hash tokens, sign/encrypt cookies and generate cryptographic keys. Thus, a strong secret is necessary to ensure security, especially in production.
Steps:
Open Git Bash.
Run the following command: openssl rand -base64 32
A random base-64 encoded string of 32 bytes will be generated.
Use this string as the new next-auth secret by replacing the relevant environment variable, both in local machine (development) as well as on Vercel (production).
Reason: A secret is a random string used to hash tokens, sign/encrypt cookies and generate cryptographic keys. Thus, a strong secret is necessary to ensure security, especially in production.
Steps: