teamhanko /hanko

Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.

★ 9,072⑂ 1,024👁 36⑃ 2,650● 441▤ 44
GoAGPL-3.0Created 2022-03-14www.hanko.io
Download: Hanko v3.1backend/v3.1.0 ↓3.1.02026-10-01
+0
Daily
9,072
stars
1,024
forks
36
watchers
2,650
prs
441
issues
44
releases

README

---






 About Hanko
Hanko is an open source authentication and user management solution that is easy to integrate, framework-agnostic, and built on privacy-first principles like data minimalism and phishing resistance.

- Supports all modern authentication methods: passwords, MFA, passkeys, social logins, and SAML SSO
- Flexible configuration options, including passkey-only, OAuth-only, and user-deletable passwords
- Easy integration with Hanko Elements web components
- A robust API that handles all authentication and onboarding flow states, enabling fast, reliable custom frontend implementations
- API-first, lightweight, cloud-native

Available for self-hosting and as a fully managed service on Hanko Cloud.

 Features
To follow the development of this project, watch our releases, leave a star, sign up to our Product News or join our Discord Community. Here's a brief overview of Hanko's current and upcoming features:

| Status | Feature |
|:------:| :--- |
|✅| Email / username identifiers |
|✅| Passwords, passcodes, passkeys |
|✅| Hanko Elements web components |
|✅| OAuth SSO (Sign in with Apple/Google/GitHub and more) |
|✅| i18n & custom translations |
|✅| SAML Enterprise SSO |
|✅| Webhooks |
|✅| Server-side sessions & remote session revocation |
|✅| MFA (TOTP, security keys) |
|✅| Custom OIDC/OAuth connections |
|✅| JS SDK |
|⚙️| Organizations, Roles, Permissions |
| |  web component |
| | iOS, Android, React Native, Flutter SDKs |

Visit our Roadmap for more information on upcoming features.

 Contact us
Schedule a demo with the team. Learn how you can built state-of-the-art authentication for your apps effortlessly with Hanko.



 Architecture
The main building blocks of the Hanko project are
- backend - Scalable, robust, and lightweight authentication API for passwords, passkeys, email passcodes, OAuth SSO, user and session management, and JWT issuing
- hanko-elements - Web components made for the Hanko API that provide onboarding, login, and user profile functionality and are customizable with CSS
- hanko-frontend-sdk - A client package for using the Hanko API

The remainder of the repository consists of:
- quickstart - A quickstart example app showing off Hanko's login experience and acting as a reference implementation
- examples - Example implementations for a number of frameworks
- docs - The Hanko documentation (docs.hanko.io) - Moved to its own repo here: https://github.com/teamhanko/docs

 Getting started
1. Try our hosted live example and our companion page passkeys.io or use the quickstart app to get a feel for the user experience provided by an application that leverages the Hanko backend API and our custom web component
2. To run the project locally, there are two options available:
   - Bare metal:
      - Head over to the backend section to learn how to get it up and running for your own project. Use Hanko Cloud for a hosted backend.
   - Docker:
     -  If you prefer to use Docker to run the project locally, please visit th

Top issues

Discussions

Latest release

Hanko v3.1 backend/v3.1.0 2026-10-01
Hanko v3.1 introduces Organizations and Roles for building B2B applications, alongside Custom Claims and Mapping for bringing identity provider attributes into your application. This release also adds session lifecycle webhooks, improves user imports, and includes several security fixes.

 Organizations and Roles

You can now group users into organizations within a Hanko tenant and assign roles to their memberships. This gives applications a foundation for managing customer accounts, teams, and organization-specific access.

Roles are defined at the tenant level and assigned to users wit

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON