- Backend Integration: entirely server-side integration, where your backend calls Stytch’s API through our backend SDK
- Headless Frontend Integration: your client invokes Stytch’s headless frontend SDKs, which handles things like client-side session management out of the box, while providing flexibility in UX and UI
- Pre-built UI Frontend Integration: your client mounts the Stytch UI component on relevant routes, and the Stytch SDK handles the full login flow automatically

Choosing an integration approach
Stytch’s frontend SDKs are built on top of our backend SDKs, and you can always change integration approaches in the future without any disruption to your application. Picking which approach to use to start largely comes down to how much you want to offload to Stytch vs how much flexibility and control you want. The below are key differences to consider when deciding which approach is right for your use case and needs:Pre-built UI integration
Stytch UI is the fastest way to ship login and signup. Your frontend renders pre-built UI components, while the SDK handles authentication and session creation. At a high level, the flow looks like this:- The end user attempts to log into your application with Stytch’s pre-built UI components configured on your frontend.
- The frontend SDK handles UI events and calls the Stytch API with the authentication data.
- The Stytch API processes the request and returns a response.
- Your frontend handles the response via callbacks or redirect URLs, and may relay data to your backend.
- The frontend SDK manages session tokens in browser cookies or mobile storage.