Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Passkeys

No security coverage Under active development

Passkeys lets people sign in to a Drupal site with the fingerprint, face or PIN that unlocks their device, or with a security key. A passkey cannot be guessed, reused on another site or typed into a fake sign-in page.

Features

  • Sign in with a passkey alone, from a button or from the username field's autofill.
  • Or ask for the passkey after the password.
  • Once an account has a passkey, its password alone no longer opens it. That holds for the sign-in form, one-time links, the JSON sign-in and HTTP Basic credentials. You can turn this off.
  • Require a passkey for the roles you choose. People in them set one up at their next sign-in. With the email code on (any first_passkey setting but off), that first passkey needs a code from the account's approved mailbox.
  • Lost device: a one-time recovery code signs in once and keeps the passkeys as they are. An administrator reset, or drush passkeys:reset, removes them all, so a new one can be set up.
  • Choose the relying party ID, so the sign-in host name can change and passkeys keep working.
  • People name, rename and remove their passkeys on a Passkeys tab. Administrators see every passkey on the site.
  • A passkey that may have been copied is suspended.
  • Works beside the Two-factor Authentication (TFA) module. Nobody is asked twice.
  • The status report lists the addresses passkeys work on, and says what is wrong when there are none.
  • Attestation, for sites that accept only certain authenticator models.
  • Events for other modules, Views data, Drush commands. drush sql:sanitize removes passkeys from a copy of the site.
  • Emails the owner when a passkey is added or removed.
  • A report of who still has to set up a passkey.
  • Asks for a code from the account's mailbox before the first passkey (the optional passkeys_email_code submodule). Someone in a role that must use a passkey then adds one only with a code from the account's approved mailbox. A new address the account gives itself waits for an administrator's approval, and codes go to the approved one meanwhile.
  • Moves passkeys over from the Web Authentication (wa) module (the optional passkeys_wa_import submodule). drush passkeys:import-wa shows what it would do; --execute imports.

Post-installation

  1. Give roles the Manage own passkeys permission.
  2. Go to Configuration, People, Passkeys, and choose how people sign in.
  3. People add a passkey on the Passkeys tab of their account.

Read "Relying party ID" in the README before people enroll. Changing it later makes every passkey stop working.

Additional requirements

  • Drupal 11.2 to 11.x, PHP 8.3 or later. Drupal 11.3 or later is recommended: 11.2 no longer gets security fixes. Drupal 12 waits for the Two-factor Authentication module and a full test run on it.
  • HTTPS on a domain name. Browsers allow passkeys nowhere else, except localhost.
  • Composer. It installs the web-auth/webauthn-lib library, which does the cryptography.

Recommended modules

Two-factor Authentication (TFA), for accounts that have no passkey yet.

Similar projects

Web Authentication (wa) adds a passkey sign-in beside the password. It has been used on live sites since late 2025, supports Drupal 10, and can send an email code after the passkey. Choose it if you need one of those.

Passkeys is for sites that want the passkey to be required, not only offered:

Web Authentication (wa) 2.1.0-beta3 Passkeys Password on an account that has a passkey Still signs in Waits for the passkey, unless you choose otherwise Roles that must use a passkey No Yes Passkey after the password No Yes Lost device Sign in with the password A recovery code signs in once; an administrator or Drush reset removes the passkeys Relying party ID The host name of the request Your choice Autofill in the username field No Yes Drupal 10 Yes No

Coming from Web Authentication (wa)? Enable the passkeys_wa_import submodule: drush passkeys:import-wa shows what the import would do, and drush passkeys:import-wa --execute brings your passkeys with you.

Two-factor Authentication (TFA) adds codes from an app, not passkeys. Decoupled Passkeys is for decoupled front ends.

How this module was written

Most of this module's code and tests were generated with AI tools under my direction. I have read it, I maintain it, and I answer for it.

Documentation

README, DESIGN.md (the decisions) and docs/threat-model.md (each security control and the test that proves it), all in the repository.

Ask your assistant about Passkeys

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2026
Latest release
1 hour ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.x-dev Dev 11 PHP 8.3 Nov 28, 2026