I trouble the following step .Setup Environment
The only environment variable that is mandatory is the AUTH_SECRET. This is a random value used by the library to encrypt tokens and email verification hashes. (See Deployment to learn more). You can generate one via the official Auth.js CLI running:
npx auth secret
This will also add it to your .env file, respecting the framework conventions (eg.: Next.js’ .env.local).
When i try that command in cmd of my nextjs folder ,env file is not get . But i get secret key in my terminal. Why should i create manually .Please give me some instruction .
I trouble the following step .Setup Environment
The only environment variable that is mandatory is the AUTH_SECRET. This is a random value used by the library to encrypt tokens and email verification hashes. (See Deployment to learn more). You can generate one via the official Auth.js CLI running:
npx auth secret
This will also add it to your .env file, respecting the framework conventions (eg.: Next.js’ .env.local).
When i try that command in cmd of my nextjs folder ,env file is not get . But i get secret key in my terminal. Why should i create manually .Please give me some instruction .