Open source authentication and user management with passkeys, 2FA, SSO, and self-hosting
- Stars9k
- Forks1k
- Open Issues54
Other
- Go
- TypeScript
- HTML

About Hanko
Hanko is an open source authentication and user management system for apps that need modern sign-in without giving up control of the backend. It is framework-agnostic, privacy-first, and built around data minimization and phishing resistance. You can run it yourself or use Hanko Cloud, with the option to move between self-hosted and managed deployment.
It supports passwords, MFA, passkeys, social logins, and SAML SSO. Hanko Elements provides customizable web components for onboarding, login, and user profile flows, while the API handles authentication, onboarding states, user and session management, email passcodes, OAuth SSO, and JWT issuing. The frontend SDK is available for custom UIs.
Hanko ships as backend, web components, and frontend SDK. The backend and the rest of the project are licensed under AGPL-3.0, while hanko-elements and hanko-frontend-sdk are MIT licensed. Self-hosting is available, and Hanko Cloud is offered for a hosted backend.
Key features
- Passwords, MFA, passkeys, social logins, and SAML SSO
- Hanko Elements web components for login and profile flows
- API handles onboarding states, users, sessions, and JWT issuing
- Frontend SDK for custom UI integrations
- Flexible auth setups like passkey-only and OAuth-only
Details
- First released
- 2022
- Self-hosting
- Available
- Platforms
- Web · Docker
- Deployment
- self-hostable · cloud · docker
- Authentication
- Passwords · MFA · Passkeys · SAML SSO
- License
- AGPL-3.0 core, MIT components
