This SDK is for NextJS version 13+ and uses Server Side Components and App Router.
This document is the most recent version of the NextJS App Router doc and fixes some issues in the v1 document. It is applicable for NextJS 13 and later.
If you haven’t already got a Kinde account, register for free here (no credit card required). Registering gives you a Kinde domain, which you need to get started, e.g. yourapp.kinde.com.
The easiest way to get started is to use the NextJS starter kit, and watch a demo video.
Both yarn
and npm
will work fine, we’ll be using npm
for the purposes of this guide.
npm i @kinde-oss/kinde-auth-nextjs
http://localhost:3000/api/auth/kinde_callback
http://localhost:3000
Put these variables in a .env.local
file in the root of your Next.js app. You can find these variables on your Kinde Settings > Applications > [Your app] > View details page.
KINDE_CLIENT_ID
- Your business’s unique ID on Kinde