Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion articles/quickstart/webapp/nextjs/interactive.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ locale: en-US
## Configure the SDK {{{ data-action="code" data-code=".env.local" }}}


<p>In the root directory of your project, add the file .<code>env.local</code> with the following <a href="https://nextjs.org/docs/basic-features/environment-variables" target="_blank" rel="noreferrer noopener">environment variables</a>:</p><ul><li><p><code>AUTH0_SECRET</code>: A long secret value used to encrypt the session cookie. You can generate a suitable string using <code>openssl rand -hex 32 </code>on the command line.</p></li><li><p><code>APP_BASE_URL</code>: The base URL of your application.</p></li><li><p><code>AUTH0_DOMAIN</code>: The URL of your Auth0 tenant domain. If you are using a <a href="https://auth0.com/docs/custom-domains" target="_blank" >Custom Domain with Auth0</a>, set this to the value of your Custom Domain instead of the value reflected in the &quot;Settings&quot; tab.</p></li><li><p><code>AUTH0_CLIENT_ID</code>: Your Auth0 application&#39;s Client ID.</p></li><li><p><code>AUTH0_CLIENT_SECRET</code>: Your Auth0 application&#39;s Client Secret.</p></li></ul><p>The SDK will read these values from the Node.js process environment and automatically configure itself.</p>
<p>In the root directory of your project, add the file .<code>env.local</code> with the following <a href="https://nextjs.org/docs/app/guides/environment-variables" target="_blank" rel="noreferrer noopener">environment variables</a>:</p><ul><li><p><code>AUTH0_SECRET</code>: A long secret value used to encrypt the session cookie. You can generate a suitable string using <code>openssl rand -hex 32 </code>on the command line.</p></li><li><p><code>APP_BASE_URL</code>: The base URL of your application.</p></li><li><p><code>AUTH0_DOMAIN</code>: The URL of your Auth0 tenant domain. If you are using a <a href="https://auth0.com/docs/custom-domains" target="_blank" >Custom Domain with Auth0</a>, set this to the value of your Custom Domain instead of the value reflected in the &quot;Settings&quot; tab.</p></li><li><p><code>AUTH0_CLIENT_ID</code>: Your Auth0 application&#39;s Client ID.</p></li><li><p><code>AUTH0_CLIENT_SECRET</code>: Your Auth0 application&#39;s Client Secret.</p></li></ul><p>The SDK will read these values from the Node.js process environment and automatically configure itself.</p>

## Create the Auth0 SDK Client {{{ data-action="code" data-code="src/lib/auth0.ts" }}}

Expand Down