diff --git a/docs/pages/getting-started/installation.mdx b/docs/pages/getting-started/installation.mdx index e0b5741ff3..5f65b3e046 100644 --- a/docs/pages/getting-started/installation.mdx +++ b/docs/pages/getting-started/installation.mdx @@ -46,8 +46,41 @@ Start by installing the appropriate package for your framework. The only environment variable that is mandatory is the `AUTH_SECRET`. This is a random value used by the library to encrypt tokens and email verification hashes. (See [Deployment](/getting-started/deployment) to learn more). You can generate one via the official [Auth.js CLI](https://cli.authjs.dev) running: + + + + ```bash npm2yarn + npx auth secret + ``` + + + + + ```bash npm2yarn + npx auth secret + ``` + + + + + ```bash npm2yarn + npx auth secret + ``` + + + + + ```bash npm2yarn + npx auth secret + ``` + + + + +Alternatively, you can use bun: + ```bash -npx auth secret +bunx auth secret ``` This will also add it to your `.env` file, respecting the framework conventions (eg.: Next.js' `.env.local`).