diff --git a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx index 2efe54a154..9369663935 100644 --- a/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx +++ b/apps/docs/content/docs/guides/authentication/better-auth/nextjs.mdx @@ -179,7 +179,7 @@ npm install better-auth Next, generate a secure secret that Better Auth will use to sign authentication tokens. This ensures your tokens cannot be messed with. ```npm -npx @better-auth/cli@latest secret +npx auth@latest secret ``` Copy the generated secret and add it, along with your application's URL, to your `.env` file: @@ -259,7 +259,7 @@ Better Auth provides a CLI command to automatically add the necessary authentica Run the following command: ```npm -npx @better-auth/cli generate +npx auth generate ``` :::note