Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Next.js authentication starter template using Kinde, TypeScript, and TailwindCSS.
Kinde Next.js Starter is a boilerplate template that wires Kinde authentication into a Next.js application, giving developers a deploy-ready foundation for adding login and logout with TypeScript and Tailwind CSS.
The Kinde Next.js Starter is a starter kit that combines the Next.js framework with Kinde's authentication service. It takes your Kinde application keys—domain, client ID, and client secret—as environment variables and outputs a working Next.js project with authentication routes pre-configured. The template is maintained by Kinde's starter-kits team on GitHub and is designed for quick deployment to Vercel, with a live demo hosted at kinde-nextjs-starter.vercel.app.
The setup flow is described in the repository's README. You create a Kinde account, add a back-end web application, and copy its domain, client ID, and client secret. Then you either deploy to Vercel with the one-click button or clone the repo and run it locally. Finally, you add the allowed callback URLs and logout redirect URLs to your Kinde app settings, both for localhost and your Vercel deployment.
The template requires three environment variables: KINDE_CLIENT_ID, KINDE_CLIENT_SECRET, and KINDE_ISSUER_URL. These come from your Kinde application's App keys section. For local development, you fill them into the .env.local.example file.
The callback URL is /api/auth/kinde_callback. You must add this path to your Kinde application's Allowed callback URLs, both for http://localhost:3000 in local development and for your Vercel production URL after deployment.
Yes. Clone the repository, set up your Kinde application with localhost callback URLs, copy the environment variables into a .env.local file based on the .env.local.example, then run npm run install and npm run dev to start the development server.
