This is a Next.js project bootstrapped with create-toolpad-app.
Run npx auth secret to generate a secret and replace the value in the .env.local file with it.
Add the CLIENT_ID and CLIENT_SECRET from your OAuth provider to the .env.local file.
First, run the development server: npm run dev
Open http://localhost:3000 with your browser to see the result.
Run this example on CodeSandbox here.
To copy this example and customize it for your needs, run
npx create-toolpad-app@latest --example auth-nextjs-themed
# or
pnpm create toolpad-app --example auth-nextjs-themedand follow the instructions in the terminal.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.