This is a test application built on top of the Kinde Next.js starter kit. Use this application to test end to end user testing features.
This application contains the following testid attributes for use in browser testing automation tools:
data-testid="sign-in-button"data-testid="sign-up-button"data-testid="sign-out-button"data-testid="user-profile"
-
Clone the repository
git clone https://github.com/<your_github_username>/kinde-test-application.git
-
Within the project folder install the dependancies
cd kinde-test-application npm install -
Rename
.env.local.sampleto.env.localUpdate 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
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
-
Run the following command in your terminal:
npm run dev
-
Open
http://localhost:3000in your browser. -
Sign up or sign in for your test user.
Within the Kinde Dashboard, you will see your new user listed within the user view.