DEV Community

Alex Spinov
Alex Spinov

Posted on

Hanko Has a Free Passkey-First Authentication Solution for Modern Apps

Hanko is an open-source authentication solution built for passkeys. It provides WebAuthn/FIDO2 auth with a drop-in web component.

What You Get for Free

  • Passkeys — WebAuthn/FIDO2 first-class
  • Web components — drop-in auth UI
  • Email/password — fallback auth
  • OAuth — social logins
  • User management — admin API
  • Self-hosted — own your data
  • Hanko Cloud — free tier available

Add to Any App

<hanko-auth api="https://your-hanko-api.com"></hanko-auth>
<hanko-profile api="https://your-hanko-api.com"></hanko-profile>
Enter fullscreen mode Exit fullscreen mode

Check Session

import { Hanko } from '@teamhanko/hanko-elements';
const hanko = new Hanko('https://your-hanko-api.com');

const session = hanko.session.get();
if (session.isValid) {
  console.log('User:', session.userID);
}
Enter fullscreen mode Exit fullscreen mode

Hanko vs Clerk

Feature Hanko Clerk
Passkeys First-class Supported
Self-host Yes No
Price Free (OSS) Free to 10K MAU

Need passkey auth? GitHub or spinov001@gmail.com

Top comments (0)