Skip to content
Merged
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
5 changes: 3 additions & 2 deletions articles/quickstart/webapp/nextjs/01-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ The SDK exposes methods and variables that help you integrate Auth0 with your Ne

### Configure the SDK

In the root directory of your project, create the file `.env.local` with the following <a href="https://nextjs.org/docs/basic-features/environment-variables" target="_blank" rel="noreferrer">environment variables</a>:
In the root directory of your project, create the file `.env.local` with the following <a href="https://nextjs.org/docs/app/guides/environment-variables" target="_blank" rel="noreferrer">environment variables</a>:

```sh
AUTH0_SECRET='use [openssl rand -hex 32] to generate a 32 bytes value'
APP_BASE_URL='http://localhost:3000'
AUTH0_DOMAIN='https://${account.namespace}'
AUTH0_CLIENT_ID='${account.clientId}'
AUTH0_CLIENT_SECRET='${account.clientSecret}'
'If your application is API authorized add the variables AUTH0_AUDIENCE and AUTH0_SCOPE'
# 'If your application is API authorized add the variables AUTH0_AUDIENCE and AUTH0_SCOPE'
AUTH0_AUDIENCE='your_auth_api_identifier'
AUTH0_SCOPE='openid profile email read:shows'
```
Expand Down Expand Up @@ -178,6 +178,7 @@ The profile information is available through the `user` property exposed by the

```jsx
'use client';
import { useUser } from "@auth0/nextjs-auth0"

export default function Profile() {
const { user, isLoading } = useUser();
Expand Down