Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to generate next auth secret for next auth

The documentation for NextAuth.js says that I can generate a secret for next auth by entering this command:

openssl rand -base64 32

Here is the documentation: https://next-auth.js.org/configuration/options#nextauth_secret

However, when I enter the command in the terminal within VS code I get this error. Error given in VS code when I run the command in file path:  PS C:\nextjs\Amazon-starter-template-nextjs>

I'm trying to run this command on Windows.

like image 511
Marquis4484 Avatar asked Sep 13 '25 15:09

Marquis4484


1 Answers

Just use Bash terminal in VS code. You can create new terminal: enter image description here

And then choose Bash: enter image description here

And just run script in Bash

PS: You can have multiple terminals open at once which is helpful sometimes

like image 110
Grayza Avatar answered Sep 15 '25 15:09

Grayza