Authentication: End-User Sign-In, Passkeys and Sessions
Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.
Didit Authentication signs your own users in to your application: sign-up, sign-in, passkeys, email and phone codes, social and company single sign-on, multi-factor authentication and sessions, with bot protection and optional identity verification built in.
People sign in on pages Didit hosts in your brand, or on your own screens through the SDKs, and your backend receives short-lived signed tokens that it verifies against your application’s public keys.
Authentication is turned on per application. Every Sandbox application has it on from the start, and you can turn products on or off there freely. A Live application turns it on from the Products page of the console. Until it is on, every runtime route for that application returns 404.
Authentication signs your customers into your application. It is separate from signing into the Didit console or creating a Didit developer account. It is also separate from verifying someone’s identity.Use Authentication alone, or combine it with Identity verification and Transaction monitoring. Signing in does not approve a verification or authorize a payment. Your backend makes those decisions from each product’s own result.New to Didit Authentication? Start with the quickstart for a first sign-in in about 10 minutes, then read the integration guide for architecture, sessions and the go-live checklist.
Your app opens the hosted sign-in page with an SDK, or runs the steps on your own screens.
Didit signs the person in or up with the methods you enabled, asks for a second factor when your MFA policy requires one, runs your bot protection policies, and runs a verification at sign-up when you ask for one.
The hosted sign-in page in your brand, following the person's device in light or dark mode.
Exchange the code for tokens
The person returns to your redirect URL with a one-time code.
Your app exchanges it for a short-lived access token, an ID token and a refresh token that rotates on every use.
See tokens and JWKS.
Protect your backend
Your backend verifies the access token on every request against your application’s published keys.
Before a sensitive action, it checks the live session, and it can ask for a step-up verification such as a selfie before a payout.
Watch and act
Every sign-up, sign-in and failure appears on the person’s timeline in the console, next to their verifications and transactions.
Subscribe to the auth.*webhooks, review sign-ins and sessions in the console, and block, unlock or sign people out when you need to.
Authentication > Overview in the Business Console.
Sign-in origin and issuer
Each application gets its own sign-in origin and its own token issuer. Live and sandbox applications are separate: they have separate origins, settings and identities.
Item
Value
Default origin
https://<slug>.auth.didit.me for a live application, https://<slug>.sandbox.auth.didit.me for a sandbox application. The console shows yours. A verified custom domain can replace it.
Hosted pages
/sign-in, /magic, /invite and /reset on that origin.
Runtime API
The same origin, for example POST {origin}/token/ and GET {origin}/session/.
Issuer
The origin itself. Discovery is at {origin}/.well-known/openid-configuration.
Publishable key
pk_live_... or pk_test_.... It identifies the application, it is not a secret.
The flow is OAuth 2.0 authorization code with PKCE (S256 only):
Your app opens {origin}/sign-in with redirect_uri, state, code_challenge and code_challenge_method=S256.
The hosted page signs the person in or up with the methods you enabled, including any required second factor.
The browser returns to your redirect_uri with code and state.
Your app exchanges the code at POST {origin}/token/ for an access token, an ID token and a refresh token.
Passkeys, email code, magic link, email and password, phone code by SMS or WhatsApp, Google, Microsoft, Apple and GitHub, and company single sign-on with SAML or OIDC.
Session lifetime, idle timeout, one or several devices at once, refresh token rotation with reuse detection, and sign-out from your app or the console.
A liveness or full ID check before an account is created, a step-up check before payouts and other sensitive actions, and verified claims such as over_18 in the token.
Bot detection, credential stuffing, brute force lockout, disposable emails, VPN and data center networks, impossible travel, breached passwords and attack mode.
Sign-in activity on each person’s timeline, ready-made fraud views, event rules and the auth.* webhooks.
SDKs
JavaScript, React, Next.js, iOS, Android, React Native and Flutter, plus token verification in the seven server SDKs.
Choose your platform
JavaScript
@didit-protocol/auth: hosted sign-in, session, token and logout.
React
@didit-protocol/auth-react: provider, hooks and components.
Next.js
@didit-protocol/auth-nextjs: HttpOnly cookies, proxy and auth().
iOS
DiditAuth Swift package: system browser, passkeys and Keychain.
Android
me.didit:didit-auth: Custom Tab, passkeys and Keystore.
React Native
@didit-protocol/auth-react-native: hosted sign-in, passkeys and protected sessions on Android and iOS.
Flutter
didit_auth: hosted sign-in, passkeys and protected sessions on Android and iOS.
Platform
Package
Version
JavaScript
@didit-protocol/auth (npm)
0.3.0
React
@didit-protocol/auth-react (npm)
0.3.0
Next.js
@didit-protocol/auth-nextjs (npm), Next.js 15.5 or later and React 19
0.3.0
Server (Node.js)
verifyToken from @didit-protocol/auth/server, or the server SDKs
0.3.0
iOS
Swift Package product DiditAuth, or CocoaPods subspec DiditSDK/Auth
4.15.4
Android
me.didit:didit-auth
4.15.4
Flutter
didit_auth (pub.dev), on the native modules at 4.15.1
0.1.1
React Native
@didit-protocol/auth-react-native (npm), on the native modules at 4.15.4
0.1.4
@didit-protocol/signals (device signals) is installed for you by @didit-protocol/auth.
Prepare your application
Turn on Authentication on the Products page of the console. A Sandbox application has it on from the start, so build and test there first. A Live application turns it on the same way, in one click: there is nothing to request and no wait.
Register your exact redirect URLs (up to 50) and the browser allowed_origins (up to 50) that call the runtime API.
Choose your session and password settings (see below).
Test sign-up, sign-in, forgot password, MFA, session expiry and logout before you go live.
A passkey belongs to its origin. If you later activate a custom domain, people must enroll their passkeys again.
Redirect URLs
Didit only returns a person to an address you registered.
Register yours in the console, under Authentication > Security and sessions > Redirect URLs and allowed origins.The redirect_uri in a sign-in request must match a registered URL character by character: scheme, host, port, path and query.
A different port, a trailing slash or a different letter case is a different address.
Application
What you can register
Live
https:// URLs
Sandbox
https:// URLs, and http:// URLs on localhost, 127.0.0.1 or [::1]
Wildcards, fragments, credentials in the URL and custom schemes are rejected.When the address isn’t registered, Didit never redirects to it.
{origin}/sign-in answers 400 with a page that says what to register and where, and POST {origin}/authorize/ answers 400 {"error": "invalid_redirect_uri"}.
Local development
Test on your own machine with your sandbox application:
Register your callback with its port, for example http://localhost:3000/auth/callback.
If browser code calls the runtime API, for example to exchange the code at POST {origin}/token/, add the origin to Allowed origins too: http://localhost:3000, with no path and no trailing slash.
Start sign-in on your sandbox origin, https://<slug>.sandbox.auth.didit.me, with your pk_test_... key.
localhost, 127.0.0.1 and [::1] are separate addresses, and so is each port.
Register each one you use.Live applications never accept http://.
Before you go live, register your production https:// callback on your live application.
Application settings
You manage these settings in the console, or by API: the console session, an owner-approved management grant, or an API key with the authentication scope can write them, as setting up by API shows.
Setting
Values
Default
session_lifetime
86400, 604800, 2592000, 7776000 seconds
2592000 (30 days)
idle_timeout
1800, 7200, 86400, 604800 seconds
86400 (1 day)
multiple_sessions
false signs the person out of their other sessions at each new sign-in
true
password_min_length
8, 10, 12, 14
10
revoke_on_password_change
Ends every session after a password reset
true
signup_policy
anyone, invited, allowed_domains (with allowed_email_domains, up to 100)
anyone
allow_subaddresses
Accept a + in the email’s local part
false
post_logout_redirect_uri
Where your app sends the person after sign-out
Empty
mfa_policy
optional, everyone, organization_admins
organization_admins
sign_in_ui
hosted or own
hosted
Keep one person across products
Every identity carries a vendor_data value. It is the external_id you supplied when you imported the person, or the Didit identity ID otherwise. It appears in the access token, the ID token and GET session/.Use the same value as vendor_data when you create verification sessions and submit transactions. Authentication events then land on the same person in the console as their verifications and transactions. See events and webhooks.Derive vendor_data on your backend from a verified token, never from an unchecked browser field.
Product combination
What you build
Authentication
Sign in, validate sessions and sign out.
Identity verification + Authentication
Start a verification after sign-in when your policy requires it, with the token’s vendor_data.
Transaction monitoring + Authentication
Submit transactions for the signed-in person’s vendor_data. Sign-in events reach the same person’s timeline and rules.
All three
One vendor_data per person. Handle each product’s decision separately.
Authentication is billed by monthly active user on every plan, Free included.
The first 50,000 active users of each month are free.
Each active user above 50,000 in a month costs $0.02 up to 100,000, $0.018 up to 1,000,000, $0.015 up to 10,000,000 and $0.012 above.An active user is a person who signs in during the month and comes back at least a day after signing up.
People who sign up and never return are free.
Each person counts once a month in each live application they sign in to, and the tiers apply to the total across your organization.
Sandbox applications are free and do not count toward the allowance.Sign-in events and webhooks are not billed per event, and agent access is included on every plan.
A verified identity check at sign-up or before a sensitive action is billed as a verification at its own price: $0.10 for liveness or selfie login, and $0.33 for a full ID check, at list.
See pricing for every rate.
Next steps
Quickstart
Sign a person in with the hosted page and verify the token in about 10 minutes.
Integration guide
Architecture, token storage, sessions, step-up and the go-live checklist.
Sign-in methods
Passkeys, codes, social, company SSO, MFA and password reset.
Verified identity
Verify people at sign-up and again before payouts.
Bot protection
Stop bots, credential stuffing and account takeover at sign-in.
Console guide
Every page of the Authentication section in the Business Console.
Last modified on November 26, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Didit Docs","description":"The best way to integrate identity and fraud checks into your app. One API for User Verification (KYC), Business Verification (KYB), Transaction Monitoring, Authentication, Bank Verification and Phone Verification. 220+ countries, 14,000+ documents, sub-2s inference, $10 free credit/month.","colors":{"primary":"#2567FF","light":"#90B1FF","dark":"#1B4FE0"},"logo":{"light":"https://mintcdn.com/didit-0f962782/jSPy3QGKsMPDdWYa/logo/didit.svg?fit=max\u0026auto=format\u0026n=jSPy3QGKsMPDdWYa\u0026q=85\u0026s=6dee3ee9ce137b2ba9c3478cc97336d3","dark":"https://mintcdn.com/didit-0f962782/jSPy3QGKsMPDdWYa/logo/didit-logo-wordmark-white.svg?fit=max\u0026auto=format\u0026n=jSPy3QGKsMPDdWYa\u0026q=85\u0026s=d4f6d31da4930f929618f47c00f08b09","href":"https://docs.didit.me"},"favicon":"https://mintcdn.com/didit-0f962782/jSPy3QGKsMPDdWYa/favicon.ico?fit=max\u0026auto=format\u0026n=jSPy3QGKsMPDdWYa\u0026q=85\u0026s=b8da20cd39727c4a1698c314cbed4b8e","api":{"examples":{"prefill":true},"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://verification.didit.me"}},"background":{"color":{"light":"#FFFFFF","dark":"#1A1A1A"}},"navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Support"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Sign in","href":"https://business.didit.me"}},"footer":{"socials":{"x":"https://x.com/didit","github":"https://github.com/didit-protocol","linkedin":"https://linkedin.com/company/91001155","website":"https://didit.me"}},"search":{"prompt":"Search Didit docs..."},"seo":{"metatags":{"twitter:site":"@didit","theme-color":"#2567FF","apple-mobile-web-app-title":"Didit Docs"},"organization":{"id":"https://didit.me/#organization","name":"Didit","legalName":"Didit Protocol","url":"https://didit.me","logo":"https://didit.me/logos/primary-horizontal-light.png","sameAs":["https://www.linkedin.com/company/91001155","https://www.youtube.com/@getdidit","https://github.com/didit-protocol","https://x.com/didit"]},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter","weight":500},"body":{"family":"Inter","weight":400}},"errors":{"404":{"redirect":false,"title":"Page not found","description":"This page moved or never existed. [Back to docs](/)"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/didit-0f962782/Xkecx-xLq1K2abHK/images/og-thumbnail-backplate.png?fit=max\u0026auto=format\u0026n=Xkecx-xLq1K2abHK\u0026q=85\u0026s=c699fa252554b2ac8d4c631e209a1473","fonts":{"family":"Inter"}},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":""},{"language":"es","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Soporte"},{"icon":"signal","href":"https://status.didit.me","label":"Estado"}],"primary":{"type":"button","label":"Iniciar sesión","href":"https://business.didit.me"}},"href":"es"},{"language":"pt-BR","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suporte"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Entrar","href":"https://business.didit.me"}},"href":"pt-br"},{"language":"ja","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"サポート"},{"icon":"signal","href":"https://status.didit.me","label":"ステータス"}],"primary":{"type":"button","label":"サインイン","href":"https://business.didit.me"}},"href":"ja"},{"language":"de","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Support"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Anmelden","href":"https://business.didit.me"}},"href":"de"},{"language":"fr","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Assistance"},{"icon":"signal","href":"https://status.didit.me","label":"Statut"}],"primary":{"type":"button","label":"Se connecter","href":"https://business.didit.me"}},"href":"fr"},{"language":"it","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Supporto"},{"icon":"signal","href":"https://status.didit.me","label":"Stato"}],"primary":{"type":"button","label":"Accedi","href":"https://business.didit.me"}},"href":"it"},{"language":"pt","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suporte"},{"icon":"signal","href":"https://status.didit.me","label":"Estado"}],"primary":{"type":"button","label":"Iniciar sessão","href":"https://business.didit.me"}},"href":"pt"},{"language":"ca","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suport"},{"icon":"signal","href":"https://status.didit.me","label":"Estat"}],"primary":{"type":"button","label":"Inicia la sessió","href":"https://business.didit.me"}},"href":"ca"},{"language":"id","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Dukungan"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Masuk","href":"https://business.didit.me"}},"href":"id"},{"language":"ru","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Поддержка"},{"icon":"signal","href":"https://status.didit.me","label":"Статус"}],"primary":{"type":"button","label":"Вход","href":"https://business.didit.me"}},"href":"ru"},{"language":"ko","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"지원"},{"icon":"signal","href":"https://status.didit.me","label":"상태"}],"primary":{"type":"button","label":"로그인","href":"https://business.didit.me"}},"href":"ko"},{"language":"zh","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"支持"},{"icon":"signal","href":"https://status.didit.me","label":"状态"}],"primary":{"type":"button","label":"登录","href":"https://business.didit.me"}},"href":"zh"},{"language":"ar","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"الدعم"},{"icon":"signal","href":"https://status.didit.me","label":"الحالة"}],"primary":{"type":"button","label":"تسجيل الدخول","href":"https://business.didit.me"}},"href":"ar"},{"language":"hi","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"सहायता"},{"icon":"signal","href":"https://status.didit.me","label":"स्थिति"}],"primary":{"type":"button","label":"साइन इन करें","href":"https://business.didit.me"}},"href":"hi"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"didit-0f962782","hasAudioNarration":false,"actualSubdomain":"didit-0f962782","customDomains":["docs.didit.me"],"gitSource":{"type":"github","owner":"didit-protocol","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0810c1647418a22ee93364","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"ar","tag":"مرجع API","count":477},{"language":"ca","tag":"Referència de l'API","count":477},{"language":"de","tag":"API-Referenz","count":477},{"language":"es","tag":"Referencia de la API","count":477},{"language":"fr","tag":"Référence API","count":477},{"language":"hi","tag":"API संदर्भ","count":477},{"language":"id","tag":"Referensi API","count":477},{"language":"it","tag":"Riferimento API","count":477},{"language":"ja","tag":"APIリファレンス","count":477},{"language":"ko","tag":"API 레퍼런스","count":477},{"language":"pt-BR","tag":"Referência da API","count":477},{"language":"pt","tag":"Referência da API","count":477},{"language":"ru","tag":"Справочник API","count":477},{"language":"zh","tag":"API 参考","count":477},{"language":"en","tag":"API Reference","count":469},{"language":"en","tag":"Bank Verification","count":155},{"language":"ar","tag":"التحقق من الحساب البنكي","count":155},{"language":"ca","tag":"Verificació bancària","count":155},{"language":"de","tag":"Bankverifizierung","count":155},{"language":"es","tag":"Verificación bancaria","count":155},{"language":"fr","tag":"Vérification bancaire","count":155},{"language":"hi","tag":"बैंक सत्यापन","count":155},{"language":"id","tag":"Verifikasi Bank","count":155},{"language":"it","tag":"Verifica bancaria","count":155},{"language":"ja","tag":"銀行口座認証","count":155},{"language":"ko","tag":"은행 계좌 인증","count":155},{"language":"pt-BR","tag":"Verificação bancária","count":155},{"language":"pt","tag":"Verificação bancária","count":155},{"language":"ru","tag":"Проверка банковского счёта","count":155},{"language":"zh","tag":"银行验证","count":155},{"language":"en","tag":"Database Validation","count":118},{"language":"ar","tag":"التحقق من قواعد البيانات","count":118},{"language":"ca","tag":"Validació en bases de dades","count":118},{"language":"de","tag":"Datenbankvalidierung","count":118},{"language":"es","tag":"Validación de base de datos","count":118},{"language":"fr","tag":"Validation en base de données","count":118},{"language":"hi","tag":"डेटाबेस सत्यापन","count":118},{"language":"id","tag":"Validasi Database","count":118},{"language":"it","tag":"Validazione su database","count":118},{"language":"ja","tag":"データベース検証","count":118},{"language":"ko","tag":"데이터베이스 검증","count":118},{"language":"pt-BR","tag":"Validação de banco de dados","count":118},{"language":"pt","tag":"Validação de base de dados","count":118},{"language":"ru","tag":"Проверка по базам данных","count":118},{"language":"zh","tag":"数据库核验","count":118},{"language":"ca","tag":"Primers passos","count":108},{"language":"de","tag":"Erste Schritte","count":108},{"language":"es","tag":"Primeros pasos","count":108},{"language":"ja","tag":"はじめに","count":108},{"language":"ko","tag":"시작하기","count":108},{"language":"pt-BR","tag":"Primeiros passos","count":108},{"language":"ru","tag":"Начало работы","count":108},{"language":"en","tag":"Supported banks","count":107},{"language":"ar","tag":"البنوك المدعومة","count":107},{"language":"ca","tag":"Bancs compatibles","count":107},{"language":"de","tag":"Unterstützte Banken","count":107},{"language":"es","tag":"Bancos compatibles","count":107},{"language":"fr","tag":"Banques prises en charge","count":107},{"language":"hi","tag":"समर्थित बैंक","count":107},{"language":"id","tag":"Bank yang Didukung","count":107},{"language":"it","tag":"Banche supportate","count":107},{"language":"ja","tag":"対応銀行","count":107},{"language":"ko","tag":"지원되는 은행","count":107},{"language":"pt-BR","tag":"Bancos suportados","count":107},{"language":"pt","tag":"Bancos suportados","count":107},{"language":"ru","tag":"Поддерживаемые банки","count":107},{"language":"zh","tag":"支持的银行","count":107},{"language":"ko","tag":"인증","count":90},{"language":"en","tag":"Get Started","count":87},{"language":"ar","tag":"ابدأ الآن","count":87},{"language":"fr","tag":"Commencer","count":87},{"language":"hi","tag":"शुरू करें","count":87},{"language":"id","tag":"Mulai","count":87},{"language":"it","tag":"Inizia","count":87},{"language":"pt","tag":"Começar","count":87},{"language":"zh","tag":"快速开始","count":87},{"language":"en","tag":"User Verification","count":71},{"language":"ar","tag":"التحقق من المستخدمين","count":71},{"language":"ca","tag":"Verificació d'usuaris","count":71},{"language":"de","tag":"Benutzerverifizierung","count":71},{"language":"es","tag":"Verificación de usuarios","count":71},{"language":"fr","tag":"Vérification des utilisateurs","count":71},{"language":"hi","tag":"उपयोगकर्ता सत्यापन","count":71},{"language":"id","tag":"Verifikasi Pengguna","count":71},{"language":"it","tag":"Verifica degli utenti","count":71},{"language":"ja","tag":"ユーザー認証","count":71},{"language":"ko","tag":"사용자 인증","count":71},{"language":"pt-BR","tag":"Verificação de usuários","count":71},{"language":"pt","tag":"Verificação de utilizadores","count":71},{"language":"ru","tag":"Проверка пользователей","count":71},{"language":"zh","tag":"用户验证","count":71},{"language":"en","tag":"Travel Rule","count":58},{"language":"ar","tag":"Travel Rule","count":58},{"language":"ca","tag":"Travel Rule","count":58},{"language":"de","tag":"Travel Rule","count":58},{"language":"es","tag":"Travel Rule","count":58},{"language":"fr","tag":"Travel Rule","count":58},{"language":"hi","tag":"Travel Rule","count":58},{"language":"id","tag":"Travel Rule","count":58},{"language":"it","tag":"Travel Rule","count":58},{"language":"ja","tag":"トラベルルール","count":58},{"language":"ko","tag":"Travel Rule","count":58},{"language":"pt-BR","tag":"Travel Rule","count":58},{"language":"pt","tag":"Travel Rule","count":58},{"language":"ru","tag":"Travel Rule","count":58},{"language":"zh","tag":"Travel Rule","count":58},{"language":"pt-BR","tag":"Recursos","count":48},{"language":"en","tag":"Integrate / SDKs","count":47},{"language":"ar","tag":"التكامل / SDKs","count":47},{"language":"ca","tag":"Integració / SDK","count":47},{"language":"de","tag":"Integrieren / SDKs","count":47},{"language":"es","tag":"Integración / SDKs","count":47},{"language":"fr","tag":"Intégrer / SDK","count":47},{"language":"hi","tag":"इंटीग्रेट करें / SDK","count":47},{"language":"id","tag":"Integrasi / SDK","count":47},{"language":"it","tag":"Integrazione / SDK","count":47},{"language":"ja","tag":"連携 / SDK","count":47},{"language":"ko","tag":"연동 / SDK","count":47},{"language":"pt-BR","tag":"Integração / SDKs","count":47},{"language":"pt","tag":"Integrar / SDKs","count":47},{"language":"ru","tag":"Интеграция / SDK","count":47},{"language":"zh","tag":"集成 / SDK","count":47},{"language":"en","tag":"Authentication","count":45},{"language":"en","tag":"Verification","count":45},{"language":"ar","tag":"المصادقة","count":45},{"language":"ar","tag":"التحقق","count":45},{"language":"ca","tag":"Autenticació","count":45},{"language":"ca","tag":"Verificació","count":45},{"language":"de","tag":"Authentifizierung","count":45},{"language":"de","tag":"Verifizierung","count":45},{"language":"es","tag":"Autenticación","count":45},{"language":"es","tag":"Verificación","count":45},{"language":"fr","tag":"Authentification","count":45},{"language":"fr","tag":"Vérification","count":45},{"language":"hi","tag":"प्रमाणीकरण","count":45},{"language":"hi","tag":"सत्यापन","count":45},{"language":"id","tag":"Autentikasi","count":45},{"language":"id","tag":"Verifikasi","count":45},{"language":"it","tag":"Autenticazione","count":45},{"language":"it","tag":"Verifica","count":45},{"language":"ja","tag":"認証","count":45},{"language":"ja","tag":"検証","count":45},{"language":"pt-BR","tag":"Autenticação","count":45},{"language":"pt","tag":"Autenticação","count":45},{"language":"pt","tag":"Verificação","count":45},{"language":"ru","tag":"Аутентификация","count":45},{"language":"ru","tag":"Верификация","count":45},{"language":"zh","tag":"身份认证","count":45},{"language":"zh","tag":"验证","count":45},{"language":"ko","tag":"기능","count":44}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"update-worker-routing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/didit-0f962782/c2833d09593e1557/style.css"}]}
{"page":{"pagePath":"authentication/overview","slug":"/authentication/overview","pageMetadata":{"title":"Authentication: End-User Sign-In, Passkeys and Sessions","sidebarTitle":"Authentication","keywords":["end-user authentication","hosted sign-in","passkeys","WebAuthn","passwordless login","email OTP","phone OTP","social login","SSO","MFA","JWT","JWKS","redirect URI","localhost redirect","Didit Authentication"],"description":"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.","href":"/authentication/overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,Frame,Heading,Note,OptimizedImage,Step,Steps,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Didit Authentication signs your own users in to your application: sign-up, sign-in, passkeys, email and phone codes, social and company single sign-on, multi-factor authentication and sessions, with bot protection and optional identity verification built in.\nPeople sign in on pages Didit hosts in your brand, or on your own screens through the SDKs, and your backend receives short-lived signed tokens that it verifies against your application’s public keys.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Authentication is turned on per application. Every Sandbox application has it on from the start, and you can turn products on or off there freely. A Live application turns it on from the `,_jsx(_components.strong,{children:`Products`}),` page of the console. Until it is on, every runtime route for that application returns `,_jsx(_components.code,{children:`404`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Authentication signs your customers into `,_jsx(_components.strong,{children:`your application`}),`. It is separate from signing into the Didit console or creating a Didit developer account. It is also separate from verifying someone’s identity.`]}),`\n`,_jsx(_components.p,{children:`Use Authentication alone, or combine it with Identity verification and Transaction monitoring. Signing in does not approve a verification or authorize a payment. Your backend makes those decisions from each product’s own result.`}),`\n`,_jsxs(_components.p,{children:[`New to Didit Authentication? Start with the `,_jsx(_components.a,{href:`/authentication/quickstart`,children:`quickstart`}),` for a first sign-in in about 10 minutes, then read the `,_jsx(_components.a,{href:`/authentication/integration-guide`,children:`integration guide`}),` for architecture, sessions and the go-live checklist.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Turn it on and configure it`,icon:`sliders`,children:_jsxs(_components.p,{children:[`Turn on Authentication for the application, register your `,_jsx(_components.a,{href:`#redirect-urls`,children:`redirect URLs`}),`, and pick the `,_jsx(_components.a,{href:`/authentication/sign-in-methods`,children:`sign-in methods`}),`, `,_jsx(_components.a,{href:`#application-settings`,children:`security and session settings`}),`, `,_jsx(_components.a,{href:`/authentication/bot-protection`,children:`bot protection`}),` and `,_jsx(_components.a,{href:`/authentication/branding-and-custom-domain`,children:`branding`}),` you want.\nDo it in the console, or from your own code with the `,_jsx(_components.a,{href:`/authentication/set-up-by-api`,children:`management API`}),`.`]})}),_jsxs(Step,{title:`Send people to sign in`,icon:`arrow-right-to-bracket`,children:[_jsxs(_components.p,{children:[`Your app opens the hosted sign-in page with an SDK, or runs the steps on your own screens.\nDidit signs the person in or up with the methods you enabled, asks for a second factor when your MFA policy requires one, runs your bot protection policies, and runs a `,_jsx(_components.a,{href:`/authentication/verified-identity`,children:`verification at sign-up`}),` when you ask for one.`]}),_jsx(Frame,{caption:`The hosted sign-in page in your brand, following the person's device in light or dark mode.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=e316faeaaaa9a49631a7e973de75d12b`,alt:`Didit's hosted sign-in page in a customer's brand, in light and dark mode, with a passkey button, email and password fields, and links to sign in with an emailed link, a phone number or single sign-on`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`1178`,height:`1178`,\"data-path\":`images/authentication/hosted-sign-in-light-dark.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=280\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=2e7c82d302d6a1f54a5abe2109b13351 280w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=560\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=fb53fa1bd24b643b94829ec80b7f1256 560w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=840\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=165b89dc6c7365660bba36a04481c74b 840w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=1100\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=6df858901f84099464e2c3e0bcab67c4 1100w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=1650\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=140ec1feea9c6fe4a4f6dea52598702a 1650w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/hosted-sign-in-light-dark.png?w=2500\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=c81991ae52ac364e5d2ea277b3498d61 2500w`})})]}),_jsx(Step,{title:`Exchange the code for tokens`,icon:`key`,children:_jsxs(_components.p,{children:[`The person returns to your redirect URL with a one-time code.\nYour app exchanges it for a short-lived access token, an ID token and a refresh token that rotates on every use.\nSee `,_jsx(_components.a,{href:`/authentication/tokens-and-jwks`,children:`tokens and JWKS`}),`.`]})}),_jsx(Step,{title:`Protect your backend`,icon:`shield`,children:_jsxs(_components.p,{children:[`Your backend verifies the access token on every request against your application’s published keys.\nBefore a sensitive action, it checks the live session, and it can ask for a `,_jsx(_components.a,{href:`/authentication/verified-identity#step-up-before-sensitive-actions`,children:`step-up verification`}),` such as a selfie before a payout.`]})}),_jsxs(Step,{title:`Watch and act`,icon:`magnifying-glass-chart`,children:[_jsxs(_components.p,{children:[`Every sign-up, sign-in and failure appears on the person’s timeline in the console, next to their verifications and transactions.\nSubscribe to the `,_jsx(_components.code,{children:`auth.*`}),` `,_jsx(_components.a,{href:`/authentication/events-and-webhooks`,children:`webhooks`}),`, review sign-ins and sessions in the `,_jsx(_components.a,{href:`/authentication/console`,children:`console`}),`, and block, unlock or sign people out when you need to.`]}),_jsx(Frame,{caption:`Authentication > Overview in the Business Console.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=ca41fb187fa6b3e238a5db30bf841b06`,alt:`The Authentication overview in the Didit Business Console, with monthly active users, sign-ins, success rate and passkey adoption for the last 30 days`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`1416`,height:`1416`,\"data-path\":`images/authentication/console-overview.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=280\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=c0e5392c167d888fc32ecff3a82d47fa 280w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=560\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=1d32df03d845a82fdf2618a0b275edc1 560w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=840\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=656540b25a6462ea268f497b5e80ad83 840w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=1100\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=bfaa359608bdb8b8aa5e6d0d8fcdab01 1100w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=1650\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=c4057a1611c3cd0f44a3043ca124d2a2 1650w, https://mintcdn.com/didit-0f962782/3yytYGmM6eYYBNzq/images/authentication/console-overview.png?w=2500\u0026fit=max\u0026auto=format\u0026n=3yytYGmM6eYYBNzq\u0026q=85\u0026s=a7a8870519c7189ea398d9acd46069e1 2500w`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`sign-in-origin-and-issuer`,children:`Sign-in origin and issuer`}),`\n`,_jsx(_components.p,{children:`Each application gets its own sign-in origin and its own token issuer. Live and sandbox applications are separate: they have separate origins, settings and identities.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Item`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Default origin`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`https://\u003cslug>.auth.didit.me`}),` for a live application, `,_jsx(_components.code,{children:`https://\u003cslug>.sandbox.auth.didit.me`}),` for a sandbox application. The console shows yours. A verified custom domain can replace it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Hosted pages`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`/sign-in`}),`, `,_jsx(_components.code,{children:`/magic`}),`, `,_jsx(_components.code,{children:`/invite`}),` and `,_jsx(_components.code,{children:`/reset`}),` on that origin.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Runtime API`}),_jsxs(_components.td,{children:[`The same origin, for example `,_jsx(_components.code,{children:`POST {origin}/token/`}),` and `,_jsx(_components.code,{children:`GET {origin}/session/`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Issuer`}),_jsxs(_components.td,{children:[`The origin itself. Discovery is at `,_jsx(_components.code,{children:`{origin}/.well-known/openid-configuration`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Publishable key`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`pk_live_...`}),` or `,_jsx(_components.code,{children:`pk_test_...`}),`. It identifies the application, it is not a secret.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The flow is OAuth 2.0 authorization code with PKCE (`,_jsx(_components.code,{children:`S256`}),` only):`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Your app opens `,_jsx(_components.code,{children:`{origin}/sign-in`}),` with `,_jsx(_components.code,{children:`redirect_uri`}),`, `,_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`code_challenge`}),` and `,_jsx(_components.code,{children:`code_challenge_method=S256`}),`.`]}),`\n`,_jsx(_components.li,{children:`The hosted page signs the person in or up with the methods you enabled, including any required second factor.`}),`\n`,_jsxs(_components.li,{children:[`The browser returns to your `,_jsx(_components.code,{children:`redirect_uri`}),` with `,_jsx(_components.code,{children:`code`}),` and `,_jsx(_components.code,{children:`state`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Your app exchanges the code at `,_jsx(_components.code,{children:`POST {origin}/token/`}),` for an access token, an ID token and a refresh token.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/authentication/tokens-and-jwks`,children:`tokens and JWKS`}),` for the token contract and `,_jsx(_components.a,{href:`/authentication/sign-in-methods`,children:`sign-in methods`}),` for each method.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-capabilities`,children:`Key capabilities`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Capability`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/sign-in-methods`,children:`Sign-in methods`})}),_jsx(_components.td,{children:`Passkeys, email code, magic link, email and password, phone code by SMS or WhatsApp, Google, Microsoft, Apple and GitHub, and company single sign-on with SAML or OIDC.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/sign-in-methods#mfa`,children:`Multi-factor authentication`})}),_jsx(_components.td,{children:`An authenticator app with recovery codes, or a passkey, required for everyone, for organization admins or for nobody.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/tokens-and-jwks#lifetimes`,children:`Sessions`})}),_jsx(_components.td,{children:`Session lifetime, idle timeout, one or several devices at once, refresh token rotation with reuse detection, and sign-out from your app or the console.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/verified-identity`,children:`Verified identity`})}),_jsxs(_components.td,{children:[`A liveness or full ID check before an account is created, a step-up check before payouts and other sensitive actions, and verified claims such as `,_jsx(_components.code,{children:`over_18`}),` in the token.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/bot-protection`,children:`Bot protection`})}),_jsx(_components.td,{children:`Bot detection, credential stuffing, brute force lockout, disposable emails, VPN and data center networks, impossible travel, breached passwords and attack mode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/organizations`,children:`Organizations`})}),_jsx(_components.td,{children:`Your business customers as organizations, with members, roles, invitations, verified email domains and their own single sign-on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/agent-access`,children:`Agent access`})}),_jsx(_components.td,{children:`Your users let their own AI agents act for them, in a scoped session they approve and can revoke.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/branding-and-custom-domain`,children:`Branding and custom domain`})}),_jsx(_components.td,{children:`Hosted pages and sign-in emails in your brand, page texts in five languages, your terms and privacy links, and your own sign-in domain.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/migration`,children:`Import users`})}),_jsx(_components.td,{children:`Move people from another identity platform or your own database, with their verified emails, social links and password hashes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/authentication/events-and-webhooks`,children:`Events and webhooks`})}),_jsxs(_components.td,{children:[`Sign-in activity on each person’s timeline, ready-made fraud views, event rules and the `,_jsx(_components.code,{children:`auth.*`}),` webhooks.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`SDKs`}),_jsxs(_components.td,{children:[`JavaScript, React, Next.js, iOS, Android, React Native and Flutter, plus token verification in the seven `,_jsx(_components.a,{href:`/integration/server-sdks/overview`,children:`server SDKs`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-your-platform`,children:`Choose your platform`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsxs(Card,{title:`JavaScript`,href:`/authentication/quickstarts/javascript`,icon:`code`,children:[_jsx(_components.code,{children:`@didit-protocol/auth`}),`: hosted sign-in, session, token and logout.`]}),_jsxs(Card,{title:`React`,href:`/authentication/quickstarts/react`,icon:`code`,children:[_jsx(_components.code,{children:`@didit-protocol/auth-react`}),`: provider, hooks and components.`]}),_jsxs(Card,{title:`Next.js`,href:`/authentication/quickstarts/nextjs`,icon:`code`,children:[_jsx(_components.code,{children:`@didit-protocol/auth-nextjs`}),`: HttpOnly cookies, proxy and `,_jsx(_components.code,{children:`auth()`}),`.`]}),_jsxs(Card,{title:`iOS`,href:`/authentication/quickstarts/ios`,icon:`mobile`,children:[_jsx(_components.code,{children:`DiditAuth`}),` Swift package: system browser, passkeys and Keychain.`]}),_jsxs(Card,{title:`Android`,href:`/authentication/quickstarts/android`,icon:`mobile`,children:[_jsx(_components.code,{children:`me.didit:didit-auth`}),`: Custom Tab, passkeys and Keystore.`]}),_jsxs(Card,{title:`React Native`,href:`/authentication/quickstarts/react-native`,icon:`mobile`,children:[_jsx(_components.code,{children:`@didit-protocol/auth-react-native`}),`: hosted sign-in, passkeys and protected sessions on Android and iOS.`]}),_jsxs(Card,{title:`Flutter`,href:`/authentication/quickstarts/flutter`,icon:`mobile`,children:[_jsx(_components.code,{children:`didit_auth`}),`: hosted sign-in, passkeys and protected sessions on Android and iOS.`]})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Platform`}),_jsx(_components.th,{children:`Package`}),_jsx(_components.th,{children:`Version`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`JavaScript`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`@didit-protocol/auth`}),` (npm)`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.3.0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`React`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`@didit-protocol/auth-react`}),` (npm)`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.3.0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Next.js`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`@didit-protocol/auth-nextjs`}),` (npm), Next.js 15.5 or later and React 19`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.3.0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Server (Node.js)`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`verifyToken`}),` from `,_jsx(_components.code,{children:`@didit-protocol/auth/server`}),`, or the `,_jsx(_components.a,{href:`/integration/server-sdks/overview`,children:`server SDKs`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.3.0`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`iOS`}),_jsxs(_components.td,{children:[`Swift Package product `,_jsx(_components.code,{children:`DiditAuth`}),`, or CocoaPods subspec `,_jsx(_components.code,{children:`DiditSDK/Auth`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4.15.4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Android`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`me.didit:didit-auth`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4.15.4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Flutter`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`didit_auth`}),` (pub.dev), on the native modules at 4.15.1`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.1.1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`React Native`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`@didit-protocol/auth-react-native`}),` (npm), on the native modules at 4.15.4`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0.1.4`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`@didit-protocol/signals`}),` (device signals) is installed for you by `,_jsx(_components.code,{children:`@didit-protocol/auth`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prepare-your-application`,children:`Prepare your application`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Turn on Authentication on the `,_jsx(_components.strong,{children:`Products`}),` page of the console. A Sandbox application has it on from the start, so build and test there first. A Live application turns it on the same way, in one click: there is nothing to request and no wait.`]}),`\n`,_jsxs(_components.li,{children:[`Register your exact `,_jsx(_components.a,{href:`#redirect-urls`,children:`redirect URLs`}),` (up to 50) and the browser `,_jsx(_components.code,{children:`allowed_origins`}),` (up to 50) that call the runtime API.`]}),`\n`,_jsxs(_components.li,{children:[`Enable the `,_jsx(_components.a,{href:`/authentication/sign-in-methods`,children:`sign-in methods`}),` you want to offer.`]}),`\n`,_jsx(_components.li,{children:`Choose your session and password settings (see below).`}),`\n`,_jsx(_components.li,{children:`Test sign-up, sign-in, forgot password, MFA, session expiry and logout before you go live.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`A passkey belongs to its origin. If you later activate a custom domain, people must enroll their passkeys again.`}),`\n`,_jsx(Heading,{level:`2`,id:`redirect-urls`,children:`Redirect URLs`}),`\n`,_jsxs(_components.p,{children:[`Didit only returns a person to an address you registered.\nRegister yours in the console, under `,_jsx(_components.strong,{children:`Authentication > Security and sessions > Redirect URLs and allowed origins`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`redirect_uri`}),` in a sign-in request must match a registered URL character by character: scheme, host, port, path and query.\nA different port, a trailing slash or a different letter case is a different address.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Application`}),_jsx(_components.th,{children:`What you can register`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Live`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`https://`}),` URLs`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sandbox`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`https://`}),` URLs, and `,_jsx(_components.code,{children:`http://`}),` URLs on `,_jsx(_components.code,{children:`localhost`}),`, `,_jsx(_components.code,{children:`127.0.0.1`}),` or `,_jsx(_components.code,{children:`[::1]`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Wildcards, fragments, credentials in the URL and custom schemes are rejected.`}),`\n`,_jsxs(_components.p,{children:[`When the address isn’t registered, Didit never redirects to it.\n`,_jsx(_components.code,{children:`{origin}/sign-in`}),` answers `,_jsx(_components.code,{children:`400`}),` with a page that says what to register and where, and `,_jsx(_components.code,{children:`POST {origin}/authorize/`}),` answers `,_jsx(_components.code,{children:`400 {\"error\": \"invalid_redirect_uri\"}`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`local-development`,children:`Local development`}),`\n`,_jsx(_components.p,{children:`Test on your own machine with your sandbox application:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Register your callback with its port, for example `,_jsx(_components.code,{children:`http://localhost:3000/auth/callback`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If browser code calls the runtime API, for example to exchange the code at `,_jsx(_components.code,{children:`POST {origin}/token/`}),`, add the origin to `,_jsx(_components.strong,{children:`Allowed origins`}),` too: `,_jsx(_components.code,{children:`http://localhost:3000`}),`, with no path and no trailing slash.`]}),`\n`,_jsxs(_components.li,{children:[`Start sign-in on your sandbox origin, `,_jsx(_components.code,{children:`https://\u003cslug>.sandbox.auth.didit.me`}),`, with your `,_jsx(_components.code,{children:`pk_test_...`}),` key.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`localhost`}),`, `,_jsx(_components.code,{children:`127.0.0.1`}),` and `,_jsx(_components.code,{children:`[::1]`}),` are separate addresses, and so is each port.\nRegister each one you use.`]}),`\n`,_jsxs(_components.p,{children:[`Live applications never accept `,_jsx(_components.code,{children:`http://`}),`.\nBefore you go live, register your production `,_jsx(_components.code,{children:`https://`}),` callback on your live application.`]}),`\n`,_jsx(Heading,{level:`2`,id:`application-settings`,children:`Application settings`}),`\n`,_jsxs(_components.p,{children:[`You manage these settings in the console, or by API: the console session, an owner-approved management grant, or an API key with the `,_jsx(_components.code,{children:`authentication`}),` scope can write them, as `,_jsx(_components.a,{href:`/authentication/set-up-by-api`,children:`setting up by API`}),` shows.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Values`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`session_lifetime`})}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`86400`}),`, `,_jsx(_components.code,{children:`604800`}),`, `,_jsx(_components.code,{children:`2592000`}),`, `,_jsx(_components.code,{children:`7776000`}),` seconds`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`2592000`}),` (30 days)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`idle_timeout`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1800`}),`, `,_jsx(_components.code,{children:`7200`}),`, `,_jsx(_components.code,{children:`86400`}),`, `,_jsx(_components.code,{children:`604800`}),` seconds`]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`86400`}),` (1 day)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`multiple_sessions`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`false`}),` signs the person out of their other sessions at each new sign-in`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`password_min_length`})}),_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`8`}),`, `,_jsx(_components.code,{children:`10`}),`, `,_jsx(_components.code,{children:`12`}),`, `,_jsx(_components.code,{children:`14`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revoke_on_password_change`})}),_jsx(_components.td,{children:`Ends every session after a password reset`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`signup_policy`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`anyone`}),`, `,_jsx(_components.code,{children:`invited`}),`, `,_jsx(_components.code,{children:`allowed_domains`}),` (with `,_jsx(_components.code,{children:`allowed_email_domains`}),`, up to 100)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`anyone`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allow_subaddresses`})}),_jsxs(_components.td,{children:[`Accept a `,_jsx(_components.code,{children:`+`}),` in the email’s local part`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`post_logout_redirect_uri`})}),_jsx(_components.td,{children:`Where your app sends the person after sign-out`}),_jsx(_components.td,{children:`Empty`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mfa_policy`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`optional`}),`, `,_jsx(_components.code,{children:`everyone`}),`, `,_jsx(_components.code,{children:`organization_admins`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`organization_admins`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sign_in_ui`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hosted`}),` or `,_jsx(_components.code,{children:`own`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`hosted`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`keep-one-person-across-products`,children:`Keep one person across products`}),`\n`,_jsxs(_components.p,{children:[`Every identity carries a `,_jsx(_components.code,{children:`vendor_data`}),` value. It is the `,_jsx(_components.code,{children:`external_id`}),` you supplied when you `,_jsx(_components.a,{href:`/authentication/migration`,children:`imported`}),` the person, or the Didit identity ID otherwise. It appears in the access token, the ID token and `,_jsx(_components.code,{children:`GET session/`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Use the same value as `,_jsx(_components.code,{children:`vendor_data`}),` when you create verification sessions and submit transactions. Authentication events then land on the same person in the console as their verifications and transactions. See `,_jsx(_components.a,{href:`/authentication/events-and-webhooks`,children:`events and webhooks`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Derive `,_jsx(_components.code,{children:`vendor_data`}),` on your backend from a verified token, never from an unchecked browser field.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Product combination`}),_jsx(_components.th,{children:`What you build`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authentication`}),_jsx(_components.td,{children:`Sign in, validate sessions and sign out.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Identity verification + Authentication`}),_jsxs(_components.td,{children:[`Start a verification after sign-in when your policy requires it, with the token’s `,_jsx(_components.code,{children:`vendor_data`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Transaction monitoring + Authentication`}),_jsxs(_components.td,{children:[`Submit transactions for the signed-in person’s `,_jsx(_components.code,{children:`vendor_data`}),`. Sign-in events reach the same person’s timeline and rules.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`All three`}),_jsxs(_components.td,{children:[`One `,_jsx(_components.code,{children:`vendor_data`}),` per person. Handle each product’s decision separately.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`/integration/integration-prompt`,children:`shared integration prompt`}),` for any combination. Read `,_jsx(_components.a,{href:`/authentication/bot-protection`,children:`bot protection`}),` for the policies that run at sign-in.`]}),`\n`,_jsx(Heading,{level:`2`,id:`pricing`,children:`Pricing`}),`\n`,_jsx(_components.p,{children:`Authentication is billed by monthly active user on every plan, Free included.\nThe first 50,000 active users of each month are free.\nEach active user above 50,000 in a month costs $0.02 up to 100,000, $0.018 up to 1,000,000, $0.015 up to 10,000,000 and $0.012 above.`}),`\n`,_jsx(_components.p,{children:`An active user is a person who signs in during the month and comes back at least a day after signing up.\nPeople who sign up and never return are free.\nEach person counts once a month in each live application they sign in to, and the tiers apply to the total across your organization.\nSandbox applications are free and do not count toward the allowance.`}),`\n`,_jsxs(_components.p,{children:[`Sign-in events and webhooks are not billed per event, and `,_jsx(_components.a,{href:`/authentication/agent-access`,children:`agent access`}),` is included on every plan.\nA `,_jsx(_components.a,{href:`/authentication/verified-identity`,children:`verified identity`}),` check at sign-up or before a sensitive action is billed as a verification at its own price: $0.10 for liveness or selfie login, and $0.33 for a full ID check, at list.\nSee `,_jsx(_components.a,{href:`/getting-started/pricing#authentication`,children:`pricing`}),` for every rate.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Quickstart`,icon:`rocket`,href:`/authentication/quickstart`,children:_jsx(_components.p,{children:`Sign a person in with the hosted page and verify the token in about 10 minutes.`})}),_jsx(Card,{title:`Integration guide`,icon:`diagram-project`,href:`/authentication/integration-guide`,children:_jsx(_components.p,{children:`Architecture, token storage, sessions, step-up and the go-live checklist.`})}),_jsx(Card,{title:`Sign-in methods`,icon:`fingerprint`,href:`/authentication/sign-in-methods`,children:_jsx(_components.p,{children:`Passkeys, codes, social, company SSO, MFA and password reset.`})}),_jsx(Card,{title:`Verified identity`,icon:`id-card`,href:`/authentication/verified-identity`,children:_jsx(_components.p,{children:`Verify people at sign-up and again before payouts.`})}),_jsx(Card,{title:`Bot protection`,icon:`shield-halved`,href:`/authentication/bot-protection`,children:_jsx(_components.p,{children:`Stop bots, credential stuffing and account takeover at sign-in.`})}),_jsx(Card,{title:`Console guide`,icon:`gauge`,href:`/authentication/console`,children:_jsx(_components.p,{children:`Every page of the Authentication section in the Business Console.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Authentication: End-User Sign-In, Passkeys and Sessions","sidebarTitle":"Authentication","keywords":["end-user authentication","hosted sign-in","passkeys","WebAuthn","passwordless login","email OTP","phone OTP","social login","SSO","MFA","JWT","JWKS","redirect URI","localhost redirect","Didit Authentication"],"description":"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.","href":"/authentication/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How it works","slug":"how-it-works","depth":2,"children":[{"title":"Sign-in origin and issuer","slug":"sign-in-origin-and-issuer","depth":3,"children":[]}]},{"title":"Key capabilities","slug":"key-capabilities","depth":2,"children":[]},{"title":"Choose your platform","slug":"choose-your-platform","depth":2,"children":[]},{"title":"Prepare your application","slug":"prepare-your-application","depth":2,"children":[]},{"title":"Redirect URLs","slug":"redirect-urls","depth":2,"children":[{"title":"Local development","slug":"local-development","depth":3,"children":[]}]},{"title":"Application settings","slug":"application-settings","depth":2,"children":[]},{"title":"Keep one person across products","slug":"keep-one-person-across-products","depth":2,"children":[]},{"title":"Pricing","slug":"pricing","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/didit-0f962782/c0e2b20b5285ec45/snippets/data/database-validation-coverage.js","/_mintlify/custom/didit-0f962782/4ac7d3c2a19a354d/database-validation-playground.js"],"subdomain":"didit-0f962782","siteName":"Didit Docs","title":"Authentication: End-User Sign-In, Passkeys and Sessions - Didit Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/authentication/overview","matchLevel":0},"es":{"href":"/es/authentication/overview","matchLevel":1},"pt-BR":{"href":"/pt-br/authentication/overview","matchLevel":1},"ja":{"href":"/ja/authentication/overview","matchLevel":1},"de":{"href":"/de/authentication/overview","matchLevel":1},"fr":{"href":"/fr/authentication/overview","matchLevel":1},"it":{"href":"/it/authentication/overview","matchLevel":1},"pt":{"href":"/pt/authentication/overview","matchLevel":1},"ca":{"href":"/ca/authentication/overview","matchLevel":1},"id":{"href":"/id/authentication/overview","matchLevel":1},"ru":{"href":"/ru/authentication/overview","matchLevel":1},"ko":{"href":"/ko/authentication/overview","matchLevel":1},"zh":{"href":"/zh/authentication/overview","matchLevel":1},"ar":{"href":"/ar/authentication/overview","matchLevel":1},"hi":{"href":"/hi/authentication/overview","matchLevel":1}}},"lastModified":"2026-11-26T08:55:17.329Z","gitLastModified":"2026-11-26T08:50:08.000Z","originalFileLocation":"authentication/overview.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Didit Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication: End-User Sign-In, Passkeys and Sessions - Didit Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Didit Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.didit.me/authentication/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://didit-0f962782.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Authentication%3A+End-User+Sign-In%2C+Passkeys+and+Sessions\u0026amp;description=Add+end-user+sign-in+with+hosted+pages%2C+passkeys%2C+codes%2C+social+and+SSO%2C+and+connect+it+to+identity+verification+and+transaction+monitoring.\u0026amp;theme=c4d9525d43b1653e99c3e166\u0026amp;signature=d3fe325ae6ec461e8202dab7bd37611405e46d104b1e6987db29b975151b4c4c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Authentication: End-User Sign-In, Passkeys and Sessions - Didit Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://didit-0f962782.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Authentication%3A+End-User+Sign-In%2C+Passkeys+and+Sessions\u0026amp;description=Add+end-user+sign-in+with+hosted+pages%2C+passkeys%2C+codes%2C+social+and+SSO%2C+and+connect+it+to+identity+verification+and+transaction+monitoring.\u0026amp;theme=c4d9525d43b1653e99c3e166\u0026amp;signature=d3fe325ae6ec461e8202dab7bd37611405e46d104b1e6987db29b975151b4c4c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/didit-0f962782/O_2hXpQmDB4Zn00Z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Didit Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2567FF\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#2567FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.didit.me/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authentication/overview.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.didit.me/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.didit.me/es/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.didit.me/pt-br/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.didit.me/ja/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.didit.me/de/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.didit.me/fr/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.didit.me/it/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.didit.me/pt/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ca\" href=\"https://docs.didit.me/ca/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.didit.me/id/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.didit.me/ru/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.didit.me/ko/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.didit.me/zh/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.didit.me/ar/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.didit.me/hi/authentication/overview\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.didit.me/authentication/overview\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://didit.me/#organization\",\"name\":\"Didit\",\"legalName\":\"Didit Protocol\",\"url\":\"https://didit.me\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://didit.me/logos/primary-horizontal-light.png\"},\"sameAs\":[\"https://www.linkedin.com/company/91001155\",\"https://www.youtube.com/@getdidit\",\"https://github.com/didit-protocol\",\"https://x.com/didit\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.didit.me#website\",\"name\":\"Didit Docs\",\"url\":\"https://docs.didit.me\",\"publisher\":{\"@id\":\"https://didit.me/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.didit.me/authentication/overview#webpage\",\"url\":\"https://docs.didit.me/authentication/overview\",\"name\":\"Authentication: End-User Sign-In, Passkeys and Sessions\",\"description\":\"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\",\"dateModified\":\"2026-11-26T08:50:08.000Z\",\"isPartOf\":{\"@id\":\"https://docs.didit.me#website\"},\"breadcrumb\":{\"@id\":\"https://docs.didit.me/authentication/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.didit.me/authentication/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Didit Docs\",\"item\":\"https://docs.didit.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication: End-User Sign-In, Passkeys and Sessions\",\"item\":\"https://docs.didit.me/authentication/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.didit.me/authentication/overview#article\",\"headline\":\"Authentication: End-User Sign-In, Passkeys and Sessions\",\"name\":\"Authentication: End-User Sign-In, Passkeys and Sessions\",\"description\":\"Add end-user sign-in with hosted pages, passkeys, codes, social and SSO, and connect it to identity verification and transaction monitoring.\",\"url\":\"https://docs.didit.me/authentication/overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.didit.me/authentication/overview#webpage\"},\"dateModified\":\"2026-11-26T08:50:08.000Z\",\"keywords\":\"end-user authentication, hosted sign-in, passkeys, WebAuthn, passwordless login, email OTP, phone OTP, social login, SSO, MFA, JWT, JWKS, redirect URI, localhost redirect, Didit Authentication\",\"publisher\":{\"@id\":\"https://didit.me/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.didit.me#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Didit Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Didit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authentication/overview.md","siteName":"Didit Docs","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Get Started","icon":"data:image/svg+xml,%3C!--/icons/rocket.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 9.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S10.6 7 12 7s2.5 1.1 2.5 2.5z' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M5 19c-1 1-1.5 3-1.5 3s2-.5 3-1.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 3s-6 0-10 4l-3.5 3.5 6 6L17 13c4-4 4-10 4-10z' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M5 14H3l3-3.5h2.5' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M10 19v2l3.5-3v-2.5' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3C/svg%3E","pages":[{"title":"Get Started","href":""}]},{"tab":"Integrate / SDKs","icon":"data:image/svg+xml,%3C!--/icons/code.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 8-5 4 5 4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m15 8 5 4-5 4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m13.5 5-3 14' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E","pages":[{"title":"Integrate / SDKs","href":"/integration/sdks"}]},{"tab":"API Reference","icon":"data:image/svg+xml,%3C!--/icons/code.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 8-5 4 5 4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m15 8 5 4-5 4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m13.5 5-3 14' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"User Verification","icon":"data:image/svg+xml,%3C!--/icons/user-verifications.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 21H7C3 21 2 20 2 16V8C2 4 3 3 7 3H17C21 3 22 4 22 8V16C22 20 21 21 17 21Z' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 8H19' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 12H19' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 16H19' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.49945 11.2899C9.49909 11.2899 10.3095 10.4796 10.3095 9.47992C10.3095 8.48029 9.49909 7.66992 8.49945 7.66992C7.49982 7.66992 6.68945 8.48029 6.68945 9.47992C6.68945 10.4796 7.49982 11.2899 8.49945 11.2899Z' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 16.3298C11.86 14.8798 10.71 13.7398 9.26 13.6098C8.76 13.5598 8.25 13.5598 7.74 13.6098C6.29 13.7498 5.14 14.8798 5 16.3298' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E","pages":[{"title":"User Verification","href":"/core-technology/liveness/overview"}]},{"tab":"Business Verification","icon":"data:image/svg+xml,%3C!--/icons/business-verifications.svg--%3E%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_7770_1291)'%3E%3Cmask id='mask0_7770_1291' style='mask-type:luminance' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'%3E%3Cpath d='M23.25 0.75V23.25H0.75V0.75H23.25Z' fill='white' stroke='white' stroke-width='1.5'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_7770_1291)'%3E%3Cpath d='M18.75 6.5V13.98L18.4301 13.94L17.5601 13.28C17.0801 12.91 16.4199 12.91 15.9399 13.28L15.0699 13.94L13.99 14.08C13.39 14.16 12.92 14.63 12.84 15.23L12.6899 16.32C12.6899 16.32 12.35 16.76 12.03 17.19C11.66 17.67 11.66 18.33 12.03 18.81L12.6899 19.68L12.83 20.76C12.84 20.84 12.86 20.92 12.89 21H6.75C4.27 21 2.25 18.98 2.25 16.5V6.5C2.25 4.02 4.27 2 6.75 2H14.25C16.72 2 18.75 4.02 18.75 6.5Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.34961 7.47021H13.7496' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.34961 11.1201H10.9096' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21.4694 18.8099C21.1494 19.2399 20.8095 19.6799 20.8095 19.6799L20.6695 20.7699C20.5895 21.3699 20.1095 21.8399 19.5095 21.9199L18.4295 22.0599L17.5595 22.7199C17.0795 23.0899 16.4194 23.0899 15.9394 22.7199L15.0694 22.0599L13.9795 21.9199C13.4595 21.8499 13.0395 21.4799 12.8895 20.9999C12.8595 20.9199 12.8394 20.8399 12.8294 20.7599L12.6894 19.6799L12.0295 18.8099C11.6595 18.3299 11.6595 17.6699 12.0295 17.1899C12.3495 16.7599 12.6894 16.3199 12.6894 16.3199L12.8394 15.2299C12.9194 14.6299 13.3895 14.1599 13.9895 14.0799L15.0694 13.9399L15.9394 13.2799C16.4194 12.9099 17.0795 12.9099 17.5595 13.2799L18.4295 13.9399L18.7495 13.9799L19.5195 14.0799C20.1195 14.1599 20.5895 14.6399 20.6695 15.2399L20.8095 16.3199L21.4694 17.1899C21.8394 17.6699 21.8394 18.3299 21.4694 18.8099Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18.3093 17.2202L16.3692 19.1602L15.1992 18.0002' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_7770_1291'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E","pages":[{"title":"Business Verification","href":"/business-verification/overview"}]},{"tab":"Transaction Monitoring","icon":"data:image/svg+xml,%3C!--/icons/transactions.svg--%3E%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_7770_1329' style='mask-type:luminance' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'%3E%3Cpath d='M22.7705 1.62354V23.1636H1.23047V1.62354H22.7705Z' fill='white' stroke='white' stroke-width='1.5'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_7770_1329)'%3E%3Cpath d='M2.64047 15.8977H12.0005' stroke='currentColor' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round'/%3E%3Cpath d='M6.15404 12.3936L2.64047 15.8976L6.15404 19.4112' stroke='currentColor' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21.3598 8.87964H11.9998' stroke='currentColor' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round'/%3E%3Cpath d='M17.8475 12.3931L21.3611 8.87957L17.8475 5.36597' stroke='currentColor' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E","pages":[{"title":"Transaction Monitoring","href":"/transaction-monitoring/overview"}]},{"tab":"Authentication","icon":"data:image/svg+xml,%3C!--/icons/authentication.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.90039 7.56023C9.21039 3.96023 11.0604 2.49023 15.1104 2.49023H15.2404C19.7104 2.49023 21.5004 4.28023 21.5004 8.75023V15.2702C21.5004 19.7402 19.7104 21.5302 15.2404 21.5302H15.1104C11.0904 21.5302 9.24039 20.0802 8.91039 16.5402' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 12H14.88' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12.6504 8.6499L16.0004 11.9999L12.6504 15.3499' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E","groups":[{"group":"Getting Started","icon":"data:image/svg+xml,%3C!--/icons/rocket.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 9.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S10.6 7 12 7s2.5 1.1 2.5 2.5z' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M5 19c-1 1-1.5 3-1.5 3s2-.5 3-1.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 3s-6 0-10 4l-3.5 3.5 6 6L17 13c4-4 4-10 4-10z' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M5 14H3l3-3.5h2.5' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3Cpath d='M10 19v2l3.5-3v-2.5' stroke='currentColor' stroke-width='1.25' stroke-linejoin='round'/%3E%3C/svg%3E","pages":[{"title":"Authentication: End-User Sign-In, Passkeys and Sessions","sidebarTitle":"Authentication","href":"/authentication/overview"},{"title":"Authentication Quickstart: First Sign-In in 10 Minutes","sidebarTitle":"Quickstart","description":"Turn on Didit Authentication in a sandbox application, sign a person in with the hosted page and verify their access token on your server.","href":"/authentication/quickstart"},{"title":"Authentication Integration Guide: Architecture and Go-Live","sidebarTitle":"Integration guide","href":"/authentication/integration-guide"},{"group":"Quickstarts","pages":[{"title":"JavaScript quickstart","href":"/authentication/quickstarts/javascript"},{"title":"React quickstart","href":"/authentication/quickstarts/react"},{"title":"Next.js quickstart","href":"/authentication/quickstarts/nextjs"},{"title":"iOS quickstart","href":"/authentication/quickstarts/ios"},{"title":"Android quickstart","href":"/authentication/quickstarts/android"},{"title":"React Native quickstart","href":"/authentication/quickstarts/react-native"},{"title":"Flutter quickstart","href":"/authentication/quickstarts/flutter"}]}]},{"group":"Features","icon":"data:image/svg+xml,%3C!--/icons/sliders.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 7h11.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M19 7h1.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Ccircle cx='17' cy='7' r='2' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M3.5 12h1.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M9 12h11.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='12' r='2' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M3.5 17h7.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M15 17h5.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17' r='2' stroke='currentColor' stroke-width='1.25'/%3E%3C/svg%3E","pages":[{"title":"Sign-In Methods: Passkeys, Codes, Social, SSO","sidebarTitle":"Sign-in methods","href":"/authentication/sign-in-methods"},{"title":"Verified Identity: Verify at Sign-Up and Step-Up Before Payouts","sidebarTitle":"Verified identity","href":"/authentication/verified-identity"},{"title":"Organizations for B2B Apps: Members, Roles and Company SSO","sidebarTitle":"Organizations","href":"/authentication/organizations"},{"title":"Bot Protection at Sign-In: Stuffing, Brute Force","sidebarTitle":"Bot protection","href":"/authentication/bot-protection"},{"title":"Agent Access: Let Your Users' AI Agents Act for Them","sidebarTitle":"Agent access","href":"/authentication/agent-access"},{"title":"Branded Sign-In Pages, Sign-In Emails and Custom Auth Domain","sidebarTitle":"Branding and custom domain","href":"/authentication/branding-and-custom-domain"},{"title":"Migrate Users: Import Passwords and MFA","sidebarTitle":"Migrate your users","href":"/authentication/migration"}]},{"group":"Reference","icon":"data:image/svg+xml,%3C!--/icons/book.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5C4 4.4 4.9 3.5 6 3.5h11.5c1.1 0 2 .9 2 2v13c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-13Z' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M8 7.5h7.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M8 11.5h7.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M8 15.5h4.5' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E","pages":[{"title":"Tokens and JWKS: Verify Didit Authentication JWTs","sidebarTitle":"Tokens and JWKS","href":"/authentication/tokens-and-jwks"},{"title":"Authentication Events and Webhooks","sidebarTitle":"Events and webhooks","href":"/authentication/events-and-webhooks"},{"title":"Set Up Didit Authentication by API","sidebarTitle":"Set up by API","href":"/authentication/set-up-by-api"},{"group":"API reference","pages":[{"title":"Get OpenID Configuration | Didit Authentication API","sidebarTitle":"Get OpenID configuration","openapi":"openapi-authentication.json GET /.well-known/openid-configuration","href":"/authentication/api-reference/get-openid-configuration"},{"title":"Get Signing Keys (JWKS) | Didit Authentication API","sidebarTitle":"Get signing keys (JWKS)","openapi":"openapi-authentication.json GET /.well-known/jwks.json","href":"/authentication/api-reference/get-jwks"},{"title":"Token Endpoint: Code Exchange and Refresh | Didit Authentication API","sidebarTitle":"Exchange or refresh tokens","openapi":"openapi-authentication.json POST /token/","href":"/authentication/api-reference/token"},{"title":"Get Session | Didit Authentication API","sidebarTitle":"Get the session","openapi":"openapi-authentication.json GET /session/","href":"/authentication/api-reference/get-session"},{"title":"Revoke Session (Sign Out) | Didit Authentication API","sidebarTitle":"Revoke the session","openapi":"openapi-authentication.json DELETE /session/","href":"/authentication/api-reference/revoke-session"},{"title":"Create Step-Up | Didit Authentication API","sidebarTitle":"Create a step-up","openapi":"openapi-authentication.json POST /step-up/","href":"/authentication/api-reference/create-step-up"},{"title":"Get Step-Up Status | Didit Authentication API","sidebarTitle":"Get a step-up","openapi":"openapi-authentication.json GET /step-up/{step_up_id}/","href":"/authentication/api-reference/retrieve-step-up"},{"title":"Create Monitoring Token | Didit Authentication API","sidebarTitle":"Create a monitoring token","openapi":"openapi-authentication.json POST /monitoring-token/","href":"/authentication/api-reference/create-monitoring-token"}]}]},{"group":"Console","icon":"data:image/svg+xml,%3C!--/icons/console.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 16.9498H6.21C2.84 16.9498 2 16.1098 2 12.7398V6.73979C2 3.36979 2.84 2.52979 6.21 2.52979H16.74C20.11 2.52979 20.95 3.36979 20.95 6.73979' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 21.4702V16.9502' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 12.9502H10' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.74023 21.4702H10.0002' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21.9993 12.7998V18.5098C21.9993 20.8798 21.4093 21.4698 19.0393 21.4698H15.4893C13.1193 21.4698 12.5293 20.8798 12.5293 18.5098V12.7998C12.5293 10.4298 13.1193 9.83984 15.4893 9.83984H19.0393C21.4093 9.83984 21.9993 10.4298 21.9993 12.7998Z' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17.2445 18.25H17.2535' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E","pages":[{"title":"Authentication Console Guide: Sign-Ins, Sessions and Settings","sidebarTitle":"Authentication console","href":"/authentication/console"}]}]},{"tab":"Bank Verification","icon":"data:image/svg+xml,%3C!--/icons/billing.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2.75' y='5.75' width='18.5' height='13' rx='2.5' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M2.75 10h18.5' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M6.5 14.5h3' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M12 14.5h2' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E","pages":[{"title":"Bank Verification","href":"/bank-data/overview"}]},{"tab":"Changelog","icon":"data:image/svg+xml,%3C!--/icons/calendar.svg--%3E%3Csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M3 10h18' stroke='currentColor' stroke-width='1.25'/%3E%3Cpath d='M8 3v4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3Cpath d='M16 3v4' stroke='currentColor' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E","pages":[{"title":"Changelog","href":"/changelog"}]}],"global":{"anchors":[{"anchor":"API Reference","icon":"code","href":"/api-reference/overview"},{"anchor":"Business Console","icon":"gauge","href":"https://business.didit.me"},{"anchor":"OpenAPI Spec","icon":"file-code","href":"https://docs.didit.me/openapi-25.json"},{"anchor":"Integration Prompt","icon":"wand-magic-sparkles","href":"/integration/integration-prompt"},{"anchor":"MCP Server","icon":"plug","href":"/integration/mcp/overview"},{"anchor":"Agent Skills","icon":"robot","href":"https://github.com/didit-protocol/skills"}]}},{"language":"es","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Soporte"},{"icon":"signal","href":"https://status.didit.me","label":"Estado"}],"primary":{"type":"button","label":"Iniciar sesión","href":"https://business.didit.me"}},"pages":[{"title":"es","href":"/es/authentication/overview"}]},{"language":"pt-BR","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suporte"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Entrar","href":"https://business.didit.me"}},"pages":[{"title":"pt-BR","href":"/pt-br/authentication/overview"}]},{"language":"ja","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"サポート"},{"icon":"signal","href":"https://status.didit.me","label":"ステータス"}],"primary":{"type":"button","label":"サインイン","href":"https://business.didit.me"}},"pages":[{"title":"ja","href":"/ja/authentication/overview"}]},{"language":"de","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Support"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Anmelden","href":"https://business.didit.me"}},"pages":[{"title":"de","href":"/de/authentication/overview"}]},{"language":"fr","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Assistance"},{"icon":"signal","href":"https://status.didit.me","label":"Statut"}],"primary":{"type":"button","label":"Se connecter","href":"https://business.didit.me"}},"pages":[{"title":"fr","href":"/fr/authentication/overview"}]},{"language":"it","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Supporto"},{"icon":"signal","href":"https://status.didit.me","label":"Stato"}],"primary":{"type":"button","label":"Accedi","href":"https://business.didit.me"}},"pages":[{"title":"it","href":"/it/authentication/overview"}]},{"language":"pt","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suporte"},{"icon":"signal","href":"https://status.didit.me","label":"Estado"}],"primary":{"type":"button","label":"Iniciar sessão","href":"https://business.didit.me"}},"pages":[{"title":"pt","href":"/pt/authentication/overview"}]},{"language":"ca","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Suport"},{"icon":"signal","href":"https://status.didit.me","label":"Estat"}],"primary":{"type":"button","label":"Inicia la sessió","href":"https://business.didit.me"}},"pages":[{"title":"ca","href":"/ca/authentication/overview"}]},{"language":"id","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Dukungan"},{"icon":"signal","href":"https://status.didit.me","label":"Status"}],"primary":{"type":"button","label":"Masuk","href":"https://business.didit.me"}},"pages":[{"title":"id","href":"/id/authentication/overview"}]},{"language":"ru","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"Поддержка"},{"icon":"signal","href":"https://status.didit.me","label":"Статус"}],"primary":{"type":"button","label":"Вход","href":"https://business.didit.me"}},"pages":[{"title":"ru","href":"/ru/authentication/overview"}]},{"language":"ko","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"지원"},{"icon":"signal","href":"https://status.didit.me","label":"상태"}],"primary":{"type":"button","label":"로그인","href":"https://business.didit.me"}},"pages":[{"title":"ko","href":"/ko/authentication/overview"}]},{"language":"zh","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"支持"},{"icon":"signal","href":"https://status.didit.me","label":"状态"}],"primary":{"type":"button","label":"登录","href":"https://business.didit.me"}},"pages":[{"title":"zh","href":"/zh/authentication/overview"}]},{"language":"ar","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"الدعم"},{"icon":"signal","href":"https://status.didit.me","label":"الحالة"}],"primary":{"type":"button","label":"تسجيل الدخول","href":"https://business.didit.me"}},"pages":[{"title":"ar","href":"/ar/authentication/overview"}]},{"language":"hi","navbar":{"links":[{"icon":"comment-dots","href":"https://help.didit.me","label":"सहायता"},{"icon":"signal","href":"https://status.didit.me","label":"स्थिति"}],"primary":{"type":"button","label":"साइन इन करें","href":"https://business.didit.me"}},"pages":[{"title":"hi","href":"/hi/authentication/overview"}]}]},"basePath":"","title":"Authentication: End-User Sign-In, Passkeys and Sessions - Didit Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-D6LgX1ys.js","DynamicMarkdown-CZT_WAnN.js","zoom-image-lightbox-CIIGaZaE.js","lightbox-handle-r17bVUz3.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}