This examples shows how to connect Auth0 as your Identity Provider with your Grafbase project — Read the guide
- Run
npx degit grafbase/grafbase/examples/nextjs-auth0 grafbase-with-nextjs-auth0to clone this example - Change directory into the new folder
cd grafbase-with-nextjs-auth0 - Run
cp .env.example .env - Run
cp grafbase/.env.example grafbase/.env - Open
.envin your code editor, and provide your Grafbase API endpoint and Auth0 Tenant Info - Open
grafbase/.envin your code editor, and provide the url of your Auth0 tenant domain - Run
npm install, oryarn installto install dependencies - Run
npx grafbase devto start local dev server with your schema - Run
npm run dev, oryarn dev(in a new terminal) - Visit http://localhost:3000