Build without limits
With multiple ways to integrate, we give you the tools you need to craft an authentication flow that feels like a core part of your product, not an isolated login page.
161 let sessionAuthData;
162 try {
163 sessionAuthData = await stytch.
164 sessions.authenticate({
165 session_duration_minutes: 30,
166 session_token: token
167 });
168 } catch (err) {
169 return {
170 redirect: {
171 statusCode: 307,
172 destination: "/login"
Example Apps
Start building today with some of our most popular example apps:
Demo Apps
Skip the installs and see our code in action with one of our demo apps:
curl -X POST \
https://api.example.com/v1/m2m/clients \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"client_name": "My API Client",
"scopes": ["read:users", "write:users"]
}'
Guides
Check out some of our most popular guides:
Multiple ways to integrate
Backend API and SDKs
Our direct API also makes it simple to integrate in any language, and our SDKs integrate tightly with your application's backend services.
Frontend and mobile SDKs
Our frontend and mobile SDKs enable you to wire custom UI to communicate directly with Stytch's API.
Pre-built UI
Our frontend JavaScript SDK offers pre-built UI with customizable login and signup forms. Configure your preferred auth methods, and customize to match your product.