Skip to content

Latest commit

 

History

History

nextjs-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Next.js example

This is an example of using @auth0/auth0-react with Next.js.

Follow the steps in examples/README.md to setup an Auth0 application and API.

Add the file ./examples/nextjs-app/.env with the domain and clientId of the application and audience (your API identifier)

NEXT_PUBLIC_DOMAIN=your-tenant.auth0.com
NEXT_PUBLIC_CLIENT_ID=yourclientid
NEXT_PUBLIC_AUDIENCE=https://api.example.com/users

Run npm run dev to start the application at http://localhost:3000

Start the API using the instructions in examples/users-api/README.md