Skip to content

Commit 5ad7fb4

Browse files
docs: Update options.md
1 parent c7ea50d commit 5ad7fb4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/docs/configuration/options.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ Using [System Environment Variables](https://vercel.com/docs/concepts/projects/e
2727

2828
### NEXTAUTH_SECRET
2929

30-
Used to encrypt the NextAuth.js JWT, and to hash [email verification tokens](https://authjs.dev/guides/creating-a-database-adapter#verification-tokens). This is the default value for the `secret` option in [NextAuth](/configuration/options#secret) and [Middleware](/configuration/nextjs#secret).
30+
Used to encrypt the NextAuth.js JWT, and to hash [email verification tokens](https://authjs.dev/guides/creating-a-database-adapter#verification-tokens). This is the default value for the `secret` option in [NextAuth](/configuration/options#secret) and [Middleware](/configuration/nextjs#secret). Alternatively, you can also set `AUTH_SECRET`, which is an alias, and is the preferred naming going forward.
31+
32+
:::tip
33+
You can run `npx auth secret` our [CLI](https://cli.authjs.dev) - in your project's root, and it will autogenerate a random value and put it in your `.env.local` file.
34+
:::
3135

3236
### NEXTAUTH_URL_INTERNAL
3337

0 commit comments

Comments
 (0)