For a passkey authentication library, the first results are pocket-id/pocket-id, lucia-auth/lucia (Lucia is a server-side authentication library that directly supports passkey WebAuthn sign-in and session management, making it a good fit for integrating passwordless authentication into web apps, though it does not provide native mobile client SDKs or magic-link/OTP fallback) and teamhanko/hanko (Hanko is a self-hostable passkey authentication service and CIAM system that provides WebAuthn/FIDO2-based passwordless login, email passcode fallback, and embeddable web components, making it a comprehensive solution for adding passkey authentication to your application). stack-auth/stack-auth and iaincollins/next-auth round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Implement secure, modern authentication flows using FIDO2, WebAuthn, and passwordless login standards in your applications.
Pocket ID is a self-hosted OpenID Connect (OIDC) identity provider that replaces traditional passwords with passkey-based authentication using WebAuthn public-key cryptography. It runs as a standalone service on user-managed infrastructure, eliminating shared secrets entirely by authenticating users through passkeys instead of passwords. The project distinguishes itself through security-hardened deployment patterns, including distroless container images, non-root user execution, and read-only root filesystems to reduce the attack surface. It supports configurable token signing algorithms (RSA
Pocket ID is a self-hosted OpenID Connect provider that uses WebAuthn passkeys for passwordless login, so you can integrate it into your app via OIDC flows — but it is a standalone service rather than an embeddable SDK and lacks cross-platform client libraries and magic link fallback.
Lucia is an authentication library that provides session management, OAuth integration, and password-based login for web applications. It creates and validates server-side sessions using cryptographically random tokens stored in HttpOnly, Secure, SameSite=Lax cookies, with constant-time token comparison to prevent timing side-channel attacks. The library supports authentication through email and password, GitHub OAuth, Google OAuth, and passkey-based sign-in. It enforces two-factor authentication using time-based one-time passwords (TOTP) from authenticator apps, generates recovery codes for
Lucia is a server-side authentication library that directly supports passkey (WebAuthn) sign-in and session management, making it a good fit for integrating passwordless authentication into web apps, though it does not provide native mobile client SDKs or magic-link/OTP fallback.
Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey authentication service and an OAuth and SAML SSO gateway, allowing applications to authenticate users and issue tokens via standard identity protocols. The project distinguishes itself through a strong focus on passwordless access using WebAuthn-based passkeys and email-based passcodes. It provides framework-agnostic authentication interfaces as customizable web components that can be embedded directly into web applications to handle login, registration, and profile management.
Hanko is a self-hostable passkey authentication service and CIAM system that provides WebAuthn/FIDO2-based passwordless login, email passcode fallback, and embeddable web components, making it a comprehensive solution for adding passkey authentication to your application.
Stack Auth is an open-source authentication and authorization platform that provides pre-built UI components, OAuth integration, team management, and session handling for web applications. It offers a complete authentication lifecycle covering sign-in, sign-up, session management, password recovery, and multi-factor security, with support for passkey authentication and OAuth providers including Google, GitHub, and Apple. The platform includes a team-based permission system with role-based access control, allowing users to be organized into teams with granular permissions for membership manage
Stack Auth is a full-featured authentication platform that supports passkey and magic-link passwordless flows, making it a solid choice for adding passwordless auth to web applications, though its mobile client SDK support isn't emphasized.
Next-auth is an authentication library and identity framework used to manage user sign-in and session state across web applications. It provides a system for handling user identity through OAuth, OpenID Connect, and passwordless sign-in flows. The project features a multi-provider framework that integrates third-party identity services and custom directory backends. It supports passwordless authentication via email magic links or hardware keys and utilizes a database-agnostic storage layer to persist authentication states across different database types or in-memory. Security is managed thro
Next-auth is an embeddable authentication library that supports passwordless login via email magic links and hardware keys, making it a solid fit for adding passwordless auth to web applications, though its WebAuthn/passkey support is not its primary focus and it lacks cross-platform client SDKs.
This library provides a backend framework for implementing FIDO2-compliant authentication and passwordless login flows in Go applications. It serves as a server-side toolkit for managing hardware-backed identity verification, enabling developers to integrate secure, browser-based authentication protocols that utilize security keys and biometric sensors. The project distinguishes itself by offering comprehensive tools for credential lifecycle management and hardware attestation. It handles the registration and storage of public key metadata while enforcing strict security requirements, such as
This Go library implements the WebAuthn and FIDO2/Passkey standards to add passwordless authentication to your backend, but it does not include client SDKs or fallback methods like magic links.
This library provides a server-side implementation for the WebAuthn standard, enabling developers to integrate FIDO2-compliant authentication into applications. It functions as a toolkit for managing public-key infrastructure, allowing systems to verify user identity through hardware-backed cryptographic signatures rather than traditional passwords. The framework facilitates the entire credential lifecycle, from the initial registration of security keys and biometric devices to the ongoing validation of authentication attempts. It handles the generation and verification of challenge-response
This is a Go server-side library focused solely on WebAuthn/FIDO2 for passwordless authentication, which fits the core need for a passkey SDK, but it does not include magic link fallback, client SDKs for iOS/Android/Web, or a full self-hosted server with session management out of the box.
firebaseui-web is a library of pre-built web interface components for managing sign-in and identity flows using the Firebase SDK. It provides a customizable suite of themed and localized UI elements for user registration, password recovery, and account onboarding. The library supports a wide range of authentication methods, including traditional email and password, passwordless email sign-in, and phone-based verification with reCAPTCHA handling. It integrates third-party identity providers through OAuth, OIDC, and SAML standards, offering both popup and redirect strategies along with Google O
This library provides pre-built UI components for Firebase Authentication, including passwordless email sign-in, but lacks WebAuthn/passkey support and is tied to Firebase's cloud backend, so it does not deliver the self-hostable passkey SDK this search asks for.
SuperTokens Core is an open-source, self-hosted authentication and identity management platform designed for deployment within private infrastructure. It provides a comprehensive suite for managing user accounts, roles, and secure authentication flows, utilizing a modular, recipe-based architecture that allows developers to enable specific security features without modifying the core codebase. The platform distinguishes itself through its robust multi-tenancy capabilities, which allow for the logical or physical isolation of user records and configuration settings across different organizatio
SuperTokens Core is a self-hosted authentication platform supporting passwordless flows like email OTP and magic links, but it does not explicitly mention WebAuthn/FIDO2 passkey support, which is the key requirement for this search.
Cosmos-Server is a self-hosted server platform that combines an authentication gateway, a reverse proxy with dynamic rate limiting, and a Docker container orchestrator into a single management interface. It provides automatic HTTPS certificate management with wildcard support through DNS challenges, and secures self-hosted applications with token-based session management and plugin-based authentication middleware. The platform distinguishes itself by integrating these capabilities into a unified system where the reverse proxy enforces authentication, rate limiting, and TLS termination before
Cosmos-Server is a self-hosted authentication gateway and reverse proxy for managing access to multiple apps, but it is not a library or SDK you embed into your own application for passwordless login, and it shows no explicit support for WebAuthn/FIDO2 or passkeys.
Satellizer is an authentication library for AngularJS applications designed to manage user sign-in and session persistence using security tokens. It functions as a client-side implementation for exchanging credentials for tokens and attaching authorization headers to network requests. The library handles identity integration through a token manager that supports both email-based authentication and external OAuth providers. It enables the authorization of users via third-party services using secure popup windows and allows for linking or unlinking external accounts to a user profile. The proj
Satellizer is a token-based OAuth/social authentication library for AngularJS, not a WebAuthn/FIDO2 passwordless or passkey SDK, so it does not provide the core passkey or magic-link functionality this search requires.
This project is a modular authentication framework designed to manage user identity, session tracking, and access control across web applications. It provides a unified solution for handling email-based credentials and social identity federation, allowing developers to implement secure login and registration flows that maintain consistent user states across client and server environments. The system utilizes a plugin-based architecture and middleware-driven request interception to allow for the extension of core authentication logic. It features type-safe schema generation, which derives data
Better Auth is a modular authentication framework focused on email and social login via OAuth/OIDC, but it does not appear to support WebAuthn/FIDO2, passkeys, or magic links — the core capabilities this search requires for passwordless authentication.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| pocket-id/pocket-id | 8.2K | Go | BSD-2-Clause | |
| lucia-auth/lucia | 10.5K | — | 0BSD | |
| teamhanko/hanko |
| 8.8K |
| Go |
| other |
| stack-auth/stack-auth | 6.7K | TypeScript | other |
| iaincollins/next-auth | 28.3K | TypeScript | ISC |
| go-webauthn/webauthn | 1.3K | Go | BSD-3-Clause |
| duo-labs/webauthn | 1K | Go | BSD-3-Clause |
| firebase/firebaseui-web | 4.9K | TypeScript | Apache-2.0 |
| supertokens/supertokens-core | 14.9K | Java | other |
| azukaar/cosmos-server | 6K | JavaScript | NOASSERTION |