Skip to content

Files

gatsby-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 19, 2023
Jun 12, 2020
Jun 12, 2020
Jun 12, 2020
Jun 12, 2020
Jun 12, 2020
Jun 12, 2020
Nov 15, 2022
Nov 15, 2022
Jun 21, 2024

Gatsby example

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

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

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

GATSBY_DOMAIN=your-tenant.auth0.com
GATSBY_CLIENT_ID=yourclientid
GATSBY_AUDIENCE=https://api.example.com/users

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

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