# How to Build Production-Ready Passkey Authentication in Symfony 8.1

DevFeed: [How to Build Production-Ready Passkey Authentication in Symfony 8.1](<https://devfeed.tech/articles/how-to-build-production-ready-passkey-authentication-in-symfony-8-1-121017.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-to-build-production-ready-passkey-authentication-in-symfony-81?source=rss>)

Author: MattLeads

Published: 2026-11-06T08:04:08Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Passkeys](<https://devfeed.tech/topics/passkeys.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [build](<https://devfeed.tech/tags/build.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [errors](<https://devfeed.tech/tags/errors.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [passkey](<https://devfeed.tech/tags/passkey.md>), [passkeys](<https://devfeed.tech/tags/passkeys.md>), [php](<https://devfeed.tech/tags/php.md>), [production](<https://devfeed.tech/tags/production.md>), [symfony](<https://devfeed.tech/tags/symfony.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [webauthn](<https://devfeed.tech/tags/webauthn.md>)

## AI overview

The guide builds a hybrid password and passkey login for Symfony 8.1 using `web-auth/webauthn-symfony-bundle` for FIDO2 ceremonies and `mattleads/passkeys-bundle` for login flow, recovery codes, usage tracking, and passkey management. It walks through account registration, adding discoverable passkeys, browser autofill login, last-used timestamps, one-time recovery codes with throttling, and revocation. Key implementation requirements include matching the WebAuthn username lookup to the user's identifier, converting validator-produced `CredentialRecord` objects to the mapped entity, configuring `entry_point` when multiple authenticators are enabled, and setting `resident_key: required` for autofill. The tutorial targets local development with localhost and AssetMapper; production requires HTTPS, an appropriate relying-party ID and allowed origins, migrations, and real session storage. Revoking a credential removes it server-side but may leave an orphaned passkey in the platform manager.

## Source excerpt

Build a passkey login in Symfony 8.1 with a hybrid password/passkey form, passkey revocation, recovery codes and fixes for the three errors you will hit.