Skip to content

Commit

Permalink
docs: add documentation on generating NEXTAUTH_SECRET on generated .e…
Browse files Browse the repository at this point in the history
…nv (#667)

Co-authored-by: Julius Marminge <[email protected]>
  • Loading branch information
Pegasust and juliusmarminge authored Oct 31, 2022
1 parent e892dad commit fde5b76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-shrimps-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

Add documentation on how to generate NEXTAUTH_SECRET in .env file for clarity
2 changes: 2 additions & 0 deletions cli/src/installers/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ DATABASE_URL=file:./db.sqlite
if (usingAuth) {
envContent += `
# Next Auth
# You can generate the secret via 'openssl rand -base64 32' on Linux
# More info: https://next-auth.js.org/configuration/options#secret
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
Expand Down

1 comment on commit fde5b76

@vercel
Copy link

@vercel vercel bot commented on fde5b76 Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.