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:

Sign up or log in
BACKGROUND COLOR
#19303D
TYPOGRAPHY
Email

Demo Apps

Skip the installs and see our code in action with one of our demo apps:

Guide
API reference
SDKs
Resources
Node
Step 1: Create an M2M Client
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.

Node
Python
Ruby
Go
Java
JS JavaScript
NEXT Next.js
React
N React Native
iOS
Android