Please read Auth0's contribution guidelines.
- Make sure you have node and npm installed
- Run
npm install
to install dependencies - Follow the local development steps below to get started
npm install
: install dependenciesnpm run build
: Build the binarynpm run build:test
: Do this once to build the test harness for the testsnpm test
: Run the unit testsnpm run test:watch
: Run the unit tests and watch for changesnpm run install:examples
: Install the examples- Setup the examples https://github.com/auth0/nextjs-auth0/tree/main/examples
npm run start:basic
: Run the basic examplenpm run start:kitchen-sink
: Run the kitchen sink examplenpm run test:kitchen-sink
: Run the E2E tests (you will need to populate theCYPRESS_USER_EMAIL
andCYPRESS_USER_PASSWORD
env vars)npm run test:kitchen-sink:watch
: Run the E2E tests and watch for changes
Your env vars in /examples/kitchen-sink-example/.env.local
should look like
AUTH0_SECRET=#ANY LONG RANDOM VALUE
AUTH0_ISSUER_BASE_URL=http://localhost:3000/oidc
AUTH0_BASE_URL=http://localhost:3000
AUTH0_CLIENT_ID=testing
AUTH0_CLIENT_SECRET=testing
Then run one of the commands:
start:kitchen-sink-local
: "npm run dev:local --prefix=examples/kitchen-sink-example",test:kitchen-sink-local
: Run the E2E tests against a mock openid providertest:kitchen-sink-local:watch
: Run the E2E tests against a mock openid provider and watch for changes