{"repo":"egregors/passkey","free":true,"listed":false,"github":"https://github.com/egregors/passkey","clone":"git clone https://github.com/egregors/passkey.git","description":"🔑 Go library for implementing WebAuthn services 🗝️","language":"Go","stars":39,"topics":["golang","passkey","webauthn"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"🔑 passkey passkey is a Go library for implementing WebAuthn services --- Table of Contents Table of Contents Features Installation Usage Library Usage Implement storages: UserStore and two SessionStore one for WebAuthn and one for general session Create a new Passkey instance and mount the routes Client-side Example Application API Middleware Development Common tasks Mocks Troubleshooting FAQ Contributing License Features - User Management : Handle user information and credentials. - WebAuthn Integration : Easily integrate with WebAuthn for authentication. - Session Management : Manage user sessions securely. - Middleware Support : Middleware for authenticated routes. [!NOTE] In general, this library is built on top of two open-source solutions: Golang WebAuthn Library – https://github.com/go-webauthn/webauthn JS/TS SimpleWebAuthn client – https://github.com/MasterKale/SimpleWebAuthn Used in project: Actual versions: Installation To get started, you need to have Go installed on your machine. If you don't have it installed, you can download it from here. Install the library using go get : Usage Library Usage To add a passkey service to your application, you need to do a few simple steps: Implement storages: UserStore and two SessionStore one for WebAuthn and one for general session Your User model also should implement User interface: This interface is an extension of the webauthn.User interface. It adds a PutCredential method that allows you to store a credential in the user","default_branch":null,"files":null,"tree":[],"storefront":"/r/egregors","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/egregors/passkey/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}