Skip to content

Commit

Permalink
docs: Update options.md
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 authored Oct 24, 2024
1 parent c7ea50d commit 5ad7fb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs/configuration/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ Using [System Environment Variables](https://vercel.com/docs/concepts/projects/e

### NEXTAUTH_SECRET

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).
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.

:::tip
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.
:::

### NEXTAUTH_URL_INTERNAL

Expand Down

0 comments on commit 5ad7fb4

Please sign in to comment.