32 Best Passkey Libraries
Tags: passkey, sdks, libraries, webauthn
Published: 2023-09-20 08:03:29

The adoption of passkeys, a secure and password-free authentication method for web and native applications, is growing as companies seek to provide users with fast, easy, and secure access to their web applications. This article aims to provide a systematic overview of the best passkey SDKs or libraries for each programming language / framework that we found, enabling you to find the right SDK / library to implement passkey login with your favorite programming language / framework.



## 1. C Passkey SDKs or libraries

-   [**libfido2: FIDO Device Communication Library**](https://github.com/Yubico/libfido2)  – Library functions and tools for FIDO device communication, supporting U2F and FIDO2 protocols on multiple platforms.


## 2. Golang Passkey SDKs or libraries

-   [**Go WebAuthn Library**](https://github.com/go-webauthn/webauthn)  – A Go-based library for Web Authentication, aiming for passwordless user solutions. It provides guidance on migration and usage while highlighting its developmental status and requirements.
-   [**Go Library for WebAuthn Registration and Verification**](https://github.com/spiretechnology/go-webauthn)  – A Go-based server-side library for WebAuthn, facilitating user registration and verification. Instructions for installation and usage provided.
-   [**Go wrapper for libfido2**](https://github.com/keys-pub/go-libfido2)  – A Go library serving as a wrapper for libfido2, enabling WebAuthn-related functionality, including device interaction, credential creation, and assertion. Dependencies and usage examples are provided.
-   [**Go Library for WebAuthn / FIDO2 Relying Party**](https://github.com/pomerium/webauthn) – A Go library implementing the WebAuthn / FIDO2 specification for registration, attestation, authentication, and assertion with code examples.


## 3. Java Passkey SDKs or libraries

-   [**WebAuthn Server Library Documentation for Java**](https://github.com/Yubico/java-webauthn-server)  – A server-side Web Authentication (WebAuthn) library for Java, detailing its build status, features, dependency configurations, and instructions. The library provides Relying Party operations to support WebAuthn, including important vulnerability disclosures and mitigation.
-   [**WebAuthn4J Library**](https://github.com/webauthn4j/webauthn4j)  – A Java library, WebAuthn4J, supports WebAuthn and Apple App Attest server-side verification, ensuring conformance to FIDO Alliance's tests and offering broad attestation statement format support; it's Kotlin-compatible and used by notable projects.


## 4. Node.js Passkey SDKs or libraries

-   [**webauthn-skeleton: Node.js/Koa application**](https://github.com/Hexagon/webauthn-skeleton)  ¬ This is a working skeleton of a Node.js/Koa application with passwordless login (Web Authentication API, WebAuthn, FIDO2).
-   [**FIDO2 / WebAuthn Node.js Server Library**](https://github.com/webauthn-open-source/fido2-lib)  – A Node.js library for performing FIDO 2.0 / WebAuthn server functionality, with support for various attestation formats and metadata services.
-   [**A WebAuthn server library written in node.js**](https://github.com/morris295/node-webauthn)  – WebAuthn server implementation in Node.js, following the WebAuthn protocol.
-   [**Corbado Node.js SDK for Passkey-First Authentication**](https://github.com/corbado/corbado-nodejs) – Node.js SDK for easy integration of Corbado's Backend API, supporting various services and utility functions for passkey-first authentication.
-   [**WebAuthn server library for Node JS**](https://github.com/webauthn-open-source/fido2-lib)  – x A server library for WebAuthn in Node.js, featuring documentation, installation instructions using lerna, and a contribution guide.


## 5. PHP Passkey SDKs or libraries

-   [**WebAuthn Integration Framework**](https://github.com/web-auth/webauthn-framework)  – An overview of the WebAuthn Framework, a toolset offering PHP libraries and Symfony bundle for integrating strong public key-based user authentication into web applications.
-   [**WebAuthn Relying Party server library for PHP**](https://github.com/madwizard-org/webauthn-server)  – An overview of the WebAuthn PHP library's current development, goals, installation, and usage instructions for implementing WebAuthn relying party server functionalities.
-   [**A simple PHP WebAuthn (FIDO2) server library**](https://github.com/lbuchs/webauthn)  – A comprehensive guide to a PHP WebAuthn server library detailing its goals, workflow, attestation methods, and features, including client-side discoverable credentials, passkeys, and browser compatibility.
-   [**Web Authentication Library for PHP**](https://github.com/Firehed/webauthn-php)  – An instructional manual on the WebAuthn authentication protocol for PHP, emphasizing cryptography over passwords and offering a crash course for library integration with sample code details.
-   [**Laragear WebAuthn Implementation Guide**](https://github.com/Laragear/WebAuthn)  – A detailed guide on integrating the Laragear WebAuthn package into Laravel projects for enhanced authentication using passkeys like fingerprints and biometric data, complete with setup and scripting.
-   [**Laravel WebAuthn Integration Guide**](https://github.com/asbiin/laravel-webauthn)  – A comprehensive guide for integrating Webauthn into Laravel projects, enabling two-factor and passwordless authentication with detailed setup and middleware implementation.[**‍**](https://github.com/jkbennemann/webauthn-php)
-   [**Simple package to implement the WebAuthn API standard inside your PHP projects**](https://github.com/jkbennemann/webauthn-php)  – A PHP package providing tools to integrate the Webauthn API standard, complete with installation instructions and testing capabilities.[**‍**](https://github.com/corbado/corbado-php)
-   [**Corbado PHP SDK for Passkey-First Authentication**](https://github.com/corbado/corbado-php)  – PHP SDK enabling seamless integration of Corbado's Backend API into PHP applications and providing services like session management and passkey-first authentication.


## 6. Python Passkey SDKs or libraries

-   [**py_webauthn Library**](https://github.com/duo-labs/py_webauthn)  – A Python3 library for the server-side WebAuthn API. It supports all FIDO2-compliant authenticators and provides core methods, helper functions, and Pydantic-powered data structures for easy WebAuthn implementation.
-   [**python-fido2 Library**](https://github.com/Yubico/python-fido2)  – A library facilitating FIDO device communication over USB, supporting FIDO U2F and FIDO 2 protocols, including CTAP 1 and 2. It offers high-level operations for WebAuthn, references, licensing, and compatibility details.
-   [**PyWARP: Python Web Authentication Relying Party library**](https://github.com/pyauth/pywarp)  – A Python library implementing the W3C WebAuthn Relying Party component, enhancing authentication security using devices like YubiKey and Touch ID, while offering protections against various attacks.


## 7. Ruby Passkey SDKs or libraries

-   [**Introduction to webauthn-ruby Library**](https://github.com/cedarcode/webauthn-ruby)  – A Ruby-based server library that transforms a Ruby/Rails web server into a WebAuthn Relying Party, managing public key credentials' operations.
-   [**Devise::Passkeys Extension Overview**](https://github.com/ruby-passkeys/devise-passkeys)  – A Devise extension for Ruby on Rails applications enabling user authentication via passkeys rather than traditional passwords.
-   [**Warden::WebAuthn Strategy Overview**](https://github.com/ruby-passkeys/warden-webauthn)  – A Warden strategy with helper methods for webauthn-ruby, facilitating WebAuthn authentication and integration with the Devise extension.
-   [**WebAuthn Ruby Library Overview**](https://github.com/nov/web_authn) – A Ruby library for the W3C Web Authentication API, offering installation and usage guidance for integrating WebAuthn / FIDO 2.0 Relying Party functionality.


## 8. Rust Passkey SDKs or libraries

-   [**A Rust library for interacting with CTAP1/CTAP2 Security Keys**](https://github.com/mozilla/authenticator-rs/)  – Cross-platform Rust library for interacting with Security Key devices, supporting USB HID, FIDO U2F, and future CTAP2.
-   [**webauthn_rs: Rust Library for WebAuthn**](https://docs.rs/webauthn-rs/latest/webauthn_rs/)  – Rust library for implementing WebAuthn, enabling strong, passwordless cryptographic authentication with support for various authenticator types.
-   [**FIDO2 Service for Linux**](https://github.com/AlfioEmanueleFresta/xdg-credentials-portal)  – A standalone Linux service providing FIDO2 (U2F and WebAuthn) functionality over D-Bus, with Rust-based library and multi-platform support.


## 9. Swift Passkey SDKs or libraries

-   [**Swift WebAuthn Implementation Package**](https://github.com/swift-server/webauthn-swift) – Swift package for implementing the WebAuthn API with ease, including registration and authentication ceremonies


## 10. .NET Passkey SDKs or libraries

-   [**FIDO2 .NET Library (WebAuthn)**](https://github.com/passwordless-lib/fido2-net-lib/tree/master/Demo)  – A .NET library and demo for implementing FIDO2 and WebAuthn, enabling passwordless authentication and strong security measures with code examples.
‍


If you want to implement passkeys in less than an hour, you can check Corbado's [SDKs for various programming languages and frameworks](https://docs.corbado.com/overview/welcome) in the docs or try the [passkey solution](https://app.corbado.com/signin#register)  for free.