🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 27, 2026

How to Add Passkeys (WebAuthn) to Gravity Forms

GravityExtra
How to Add Passkeys (WebAuthn) to Gravity Forms

Passwords are the weakest part of most websites. People reuse them, forget them, and hand them to fake login pages without knowing it. Passkeys fix that, and with the Gravity Forms Passkeys Premium Add-on you can put them to work in the forms you already run: let someone create a passkey, sign in with one, or confirm a sensitive action with one, all checked on your own server. This guide explains what a passkey is, how the add-on uses it, and how to set up each of the three actions step by step.

What a passkey actually is

A passkey is a pair of cryptographic keys created by the visitor’s device. The private half never leaves the phone, tablet, laptop or security key that made it. The public half is stored for the user on your site. When the person needs to prove who they are, their device signs a one-time challenge your server sends, and your server checks that signature against the stored public key. There is no shared secret, so there is nothing to steal in a database breach, nothing to reuse on another site, and nothing to type into a look-alike page.

For the visitor the experience is the gesture they already know: Face ID or Touch ID on an Apple device, a fingerprint or screen lock on Android, Windows Hello on a PC, or a tap on a hardware security key. For you it means fewer password resets, fewer account takeovers, and a login that genuinely resists phishing.

Three things the add-on can do

The add-on adds one new field to Gravity Forms, the Passkey field, and that field can take one of three roles. You choose the role on the field itself, so a single install covers registration, sign-in and a step-up check.

  • Register a passkey. The visitor creates a passkey. If they are signed in, it is attached to their account; if they are not, and you allow it, an account is created for them.
  • Sign in with a passkey. The visitor proves a passkey and is signed in to WordPress with no password at all.
  • Step-up check. The form refuses to submit until the signed-in user proves a passkey, which is perfect for a sensitive change such as new bank details or a cancellation.
The Passkey field on a live Gravity Forms form with a button and a status message
The Passkey field on the live form: one button and a live status message.

Before you start

You need WordPress 5.8 or newer, PHP 7.4 or newer with the OpenSSL extension, and Gravity Forms 2.5 or newer. Passkeys only work in a secure context, so your site must be served over HTTPS; the one exception is localhost while you are developing. You also need an active license key for the add-on, which unlocks the field and the verification routes. The add-on has been tested on Gravity Forms 3.1.2 with PHP 8.3 and on Gravity Forms 2.9.8 with PHP 7.4.

Step one: install and enter your license

Install and activate the add-on like any plugin, after Gravity Forms is already active. Then open Forms, then Settings, then Passkeys, and paste your license key. On the same screen you will find two defaults that apply across every form: whether a check must verify the person, and whether registering a passkey may create a WordPress account.

The Passkeys settings page with the license key and the passkey defaults
The settings page: the license key and the two passkey defaults.

Step two: add the Passkey field

Open the form you want to protect and look under Advanced fields for the Passkey field. Drop it onto the form. In the field settings you will see a Passkey action menu with the three roles, and a box for the button label. The field supports conditional logic, so you can show the passkey step only when it is needed, for example only when a visitor asks to change something important.

Step three: choose the action

Register a passkey

Set the field to register a passkey when you want people to enrol one, perhaps on a membership form or a profile page. A signed-in visitor presses the button, approves the prompt on their device, and the passkey is added to their account. If you have turned on account creation in the settings, a visitor who is not signed in can register too: they give a username, the device makes the passkey, and the add-on creates a passwordless WordPress account tied to it. Pair this with a sign-in field and you have a complete passwordless onboarding flow.

Sign in with a passkey

Set the field to sign in when you want a passwordless login. The field shows a small box for a username or e-mail so the browser can offer the right passkey, although a discoverable passkey needs no name at all. The visitor presses the button, approves the prompt, and the server verifies the signature, finds the matching account, and signs them in. No password is ever typed, so there is nothing to phish and nothing to reset.

Require a passkey before submit

Set the field to step-up when a form performs a sensitive action. The form will simply not submit until the signed-in user proves a passkey, and the server enforces that on the back end, not just in the browser, so the check cannot be skipped by a script. Use it for changing payout details, cancelling a subscription, deleting data or any action where you want proof that the right person is really there, right now.

How the verification works

When a visitor presses the button, the browser asks your server for a challenge. The server creates a single-use, time-boxed random challenge, bound to the form, the field and the session, and returns it with the relying-party details. The browser then runs the WebAuthn ceremony: it asks the device to create a passkey for registration, or to sign the challenge for a sign-in or a step-up check. The device shows its own prompt and does the cryptography.

The browser hands the result back, and the add-on verifies it entirely in bundled PHP. It reads the authenticator data, confirms the relying-party hash matches your domain, confirms the origin is your site, confirms the challenge is the one it issued and has not been used before, and, for a sign-in or a step-up check, verifies the signature against the stored public key. It understands both signature types browsers use for passkeys, an elliptic-curve ES256 signature and an RSA RS256 signature, and it reads the CBOR and COSE formats that WebAuthn uses. It also checks the sign count, a counter the authenticator increases each time, and refuses any response whose count did not move forward, which is how a cloned or replayed passkey is caught. Only when every check passes does the form submit.

Crucially, none of this calls an outside service. There is no API key, no per-use fee and no third-party account. The whole verifier ships inside the add-on and runs on your own server, using the OpenSSL extension that comes with PHP.

What gets stored, and what does not

Your server stores only a public key and a sign count for each credential, attached to the WordPress user. The private key never leaves the visitor’s device, so even a full copy of your database reveals nothing that could impersonate anyone. A completed submission is recorded as an ordinary Gravity Forms entry, with the Passkey field saved as a short confirmation rather than any credential material, and you can add an entry note that records what was verified.

A Gravity Forms entry screen showing the field values and a note that a passkey was verified
The entry screen: the submitted values and a note that a passkey was verified.

User verification and device support

Turn on Require user verification in the settings to insist the authenticator verify the person, not merely that a key is present, meaning Face ID, a fingerprint or a PIN rather than a simple tap. Most phones and laptops support it. Some plain security keys do not, so leave it off if you need to welcome every key. Because a passkey is a standard WebAuthn credential, the add-on does not care whether the visitor used an iPhone, an Android phone, a Windows laptop or a hardware key; the server checks the signature the same way for all of them, and a phone can even act as a key for a nearby computer.

For developers

Two helper functions tell you about a user’s passkeys: one returns whether a user has any, the other returns how many. Several filters let you adjust the ceremony, including the relying-party ID, whether user verification is forced, whether account creation is allowed and which role new accounts get, and whether a sign-in sets the WordPress cookie. The field also works on normal, AJAX and multi-page forms, because the ceremony script re-attaches itself whenever Gravity Forms redraws the form.

Get started

Passkeys are the clearest upgrade you can make to the way people prove who they are, and with this add-on you can add them to the forms you already run in an afternoon. Read the full setup instructions in the Passkeys documentation, then get the Gravity Forms Passkeys Premium Add-on and give your forms a passwordless, phishing-resistant sign-in and a real step-up check today.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr