feat: add passkey (WebAuthn) authentication support#5
Merged
jimmitchell merged 3 commits intomainfrom Mar 28, 2026
Merged
Conversation
Adds passwordless login via device biometrics or PIN as an alternative to username/password. Supports multiple named passkeys (one per device), passkey management on the account page, and activity logging for passkey add/remove/login events. - Add lbuchs/webauthn ^2.2 dependency - Add passkeys table via schema v12 migration - Add WebAuthn methods to Auth (register, verify, list, remove) - Add passkey-api.php JSON API (session-based, not Basic Auth) - Add "Sign in with a passkey" button to login page - Add passkey management panel to account page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lbuchs/webauthn ^2.2for server-side WebAuthn verificationChanges
composer.json— addslbuchs/webauthn ^2.2src/Database.php— schema v12 migration addspasskeystablesrc/Auth.php— addshasPasskeys,getPasskeys,passkeyRegisterOptions,passkeyRegisterComplete,passkeyAuthOptions,passkeyAuthVerify, andwebAuthnmethodsadmin/passkey-api.php— new session-based JSON API for WebAuthn registration and authenticationadmin/index.php— adds "Sign in with a passkey" button above the password form (shown only when passkeys are registered)admin/account.php— adds passkey management panel with list, register, and remove actionsadmin/assets/admin.css— adds.btn--passkeyand.login-dividerstylesTest plan
passkey_login,passkey_add, andpasskey_removeentries appear🤖 Generated with Claude Code