/kinde-nextjs-app-router-starter-kit

Kinde NextJS SDK with full App Router support

Primary LanguageCSSMIT LicenseMIT

Kinde Starter Kit - NextJS with full App Router support

This is a starter kit to get you started with Kinde on Next.js

Dependancies

  • node.js (>=18)
  • Kinde account - Get free account here
    • Kinde back-end web application setup

Setup your local environment

  1. Fork
  2. Clone the repository
git clone https://github.com/<your_github_username>/kinde-nextjs-app-router-starter-kit.git
  1. Within the project folder install the dependancies
> cd kinde-nextjs-app-router-starter-kit
> npm i
  1. Set up your environment

Rename .env.local.sample to .env.local

Update the file with your application settings. These can be found within the backend application details within the Kinde dashboard

KINDE_CLIENT_ID=<your_kinde_client_id>
KINDE_CLIENT_SECRET=<your_kinde_client_secret>
KINDE_ISSUER_URL=https://<your_kinde_subdomain>.kinde.com

Setup Kinde

Within your back-end web application update your settings

Allowed callback URLs

http://localhost:3000/api/auth/kinde_callback

Allowed logout redirect URLs

http://localhost:3000

Note: When you deploy your application, these URLs will have to be updated accordingly

Start your app

npm run dev

open http://localhost:3000 in your browser

Create your first user

Click on Sign up and register your first user for your business!

Within the Kinde Dashboard, you will see your new user listed within the user view. 🚀

Resources

Get help