Skip to content
  • Testing

End-to-end testing overview

Automated testing with Kinde authentication helps ensure your application’s authentication flows work reliably. You can test backend APIs, UI authentication flows, and authenticated features using different approaches depending on what you need to validate.

Testing approaches

Link to this section

Kinde supports three main testing approaches:

  • Authentication flow testing: Test sign-up, sign-in, and sign-out flows using browser automation tools with both password and passwordless flows.
  • Authenticated feature testing: Test protected routes and features after authentication using saved session state.
  • Backend API testing: Test protected API endpoints using refresh tokens for long-running authenticated sessions.

Each approach has its own overview guide with detailed implementation steps and examples for various browser automation tools:

Some authentication flows have testing limitations:

  • Social provider flows: Automated testing of Google, GitHub, or other social sign-in flows is not directly supported due to third-party provider restrictions
  • MFA flows: Testing multi-factor authentication may require manual intervention
  • Enterprise SSO flows: Testing SAML/SSO enterprise connections requires coordination with identity providers
  • Test mode and test users: Kinde has no test mode, static one-time code, or automatic expiry for test users. To test the passwordless screens or hosted sign-up, intercept the real code email. For tests that only need a signed-in user, create pre-verified users with the Management API and delete them when the test is done (see below)

For these use cases, consider manual testing or staging environments with test identity providers.

Getting started

Link to this section

Before you start testing, you need to set up your test infrastructure:

Setup test user and environment - Create test users in the dashboard or with the Management API, configure test applications, set up isolated test environments, and clean up test users your suite creates. This setup is required for all testing methods.