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.
I'm trying to run this command on Windows.
Just use Bash terminal in VS code. You can create new terminal:
And then choose Bash:
And just run script in Bash
PS: You can have multiple terminals open at once which is helpful sometimes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With