Setup Cypress
Testing
Before you begin testing your application with Kinde authentication, you need to set up dedicated test users and configure your test environment. This setup is common across all testing methods, whether you’re testing backend APIs, authentication flows, or authenticated features.
Using dedicated test infrastructure for automated testing provides several benefits:
Kinde allows creating multiple non-production environments. This is useful for testing in different environments without having to sign up for a new account.
You are now in the test environment.
e2e-test@yourcompany.com)Repeat this process for each test user you need to create.
You will need the client ID, client secret, and access token when running certain tests.
Go to your Kinde dashboard and select Add application
Enter a name for the application (e.g., “Test Application”)
Select the application type (e.g., “Back-end web”)
Select Save
On the Quick start page, select a technology (e.g., “Next.js”) and select Save
Configure the callback URLs
Go to Authentication:
Select Save
Optional: Go to Tokens to configure a custom token expiration time for this application.
If you are creating your tests from scratch, you can use the Kinde Next.js end-to-end test application to get started.
After completing the above steps, you now have:
You can now start testing your application with Kinde authentication.