Skip to content

Using Passkey Security

What the customer sees

Account security page

The extension renders the theme's own Account > Security page first and adds three panels below it.

Security page with the passkey, session and sign-in panels

Passkeys

Lists the customer's passkeys with their name, the date they were added and when they were last used ("Never used" until the first sign in). Without a passkey the panel shows No passkey registered yet.

To add a passkey, the customer:

  1. clicks Add passkey,
  2. types a name into Name this passkey (optional, up to 60 characters; an empty name becomes "Passkey"),
  3. clicks Continue and confirms the prompt of the browser or device.

The page reloads and shows the new passkey. A customer can register several passkeys; the code sets no upper limit. Passkeys that are already registered for the account are passed to the browser as excluded, so the same authenticator is not registered twice.

Remove deletes a passkey after a browser confirmation (Remove this passkey?). A customer can only remove their own passkeys.

Sessions

Shows the number of active sessions of the account and a Sign out all other sessions button. After the confirmation Sign out every other device? the extension deletes every session of the account except the current one and reports how many were ended. The individual sessions are listed by Paymenter's own panel further up the page. If Paymenter does not attach a current session to the request, all sessions of the account are deleted, including the one in use.

Recent sign-ins

Shows the 10 most recent sign-in entries of the account, newest first, each with IP address and time. The panel is hidden when Show the login history in Account → Security is off.

The entries come from Paymenter's own sign-in log (user_authentication_logs), not from the extension. Paymenter keeps one entry per customer and IP address and updates its time on each new sign in from that address, so the panel is a list of the addresses last used, not of every single sign in. It covers password and passkey sign-ins alike.

Login page

The extension renders the theme's own login form first and adds a Sign in with a passkey button below it, with the hint "Enter your e-mail address above first, or use a device that already knows your passkey."

When the customer clicks the button:

  1. The extension reads the e-mail field of the login form.
  2. If an account with that address exists, the browser is only offered the passkeys of that account. If the field is empty, the browser may offer any passkey the device holds for your shop. An unknown address gets the same answer as an empty field, so the response does not reveal whether an account exists.
  3. The customer confirms the prompt of the browser or device.
  4. The extension verifies the answer, signs the customer in and sends them to the page they wanted to open, or to the dashboard.

Errors appear in a red box above the button. See the FAQ for the list of messages.

A passkey sign in always sets Paymenter's "remember me" login, regardless of the Remember me checkbox in the password form.

Warning

The passkey sign in does not ask for a two-factor code. The extension's sign-in endpoint signs the customer in as soon as the passkey is verified. A customer who has enabled Paymenter's two-factor authentication is still asked for the code when signing in with the password.

What you see as an admin

Both lists are in the Extensions group of the admin navigation. They are read-only: there are no create, edit or delete actions.

Passkeys

Admin list of all registered passkeys

Column Content
Customer E-mail address of the account. Searchable.
Label The name the customer gave the passkey. Searchable.
Transports How the passkey is reached, as reported by the browser at registration (for example internal, usb, hybrid). Can be hidden.
Uses The signature counter last reported by the authenticator. Sortable.
Last used Time since the last sign in with this passkey, or "Never".
Added Registration date. Sortable.

The newest passkey is at the top.

Note

Uses is the authenticator's own counter, not a count kept by the extension. Authenticators that do not keep a counter always report 0, so the column can stay at 0 for a passkey that is used every day.

You cannot remove a customer's passkey from this list. The customer removes it under Account > Security. Deleting the user account in Paymenter deletes its passkeys with it.

Login History

Admin list of sign-ins of all customers

Column Content
Customer E-mail address of the account. Searchable.
IP address Address the sign in came from. Searchable.
Signed in Time since the last sign in from that address. Sortable.

The list shows Paymenter's sign-in log for all accounts, newest first. It is the same data as the customer's Recent sign-ins panel and has the same structure: one entry per account and IP address. It is shown whether or not the customer panel is switched on.

What the extension checks

When a passkey is registered

  • The request belongs to a challenge the extension issued in the same browser session. A challenge can be used once.
  • The browser reports the origin from APP_URL.
  • The passkey was created for the host name from APP_URL.
  • The authenticator reports that a user was present.
  • The key is a P-256 (ES256) or RSA (RS256) key.
  • The passkey is not registered yet, on this or any other account.

The extension then stores the passkey's ID, its public key, the counter, the transports and the authenticator model ID (AAGUID) in ext_passkeys. No private key and no biometric data reach the server.

When a customer signs in

  • The passkey is registered.
  • If an e-mail address of an existing account was entered, the passkey belongs to that account.
  • Challenge, origin and host name match, as for registration.
  • The authenticator reports that a user was present.
  • The signature is valid for the stored public key.
  • If both the stored and the reported counter are above 0, the reported one must be higher. If it is not, the sign in is refused with This passkey may have been copied and a warning is written to the log.

After a successful check the extension stores the new counter and the time of use, then signs the customer in. It uses Paymenter's App\Actions\Auth\Login action if the installation has one. Otherwise it logs the user in, regenerates the session and dispatches Paymenter's Login event, the same event the password login dispatches.

Automatic behaviour

  • Rate limit. The sign-in endpoint accepts 10 attempts per IP address in 60 seconds. Every attempt counts, and a successful sign in resets the counter. Further attempts get Too many attempts. Please try again later.
  • Logging. Failed sign-ins are written to Paymenter's log as Passkey login failed: <reason> with the IP address. Failed registrations are logged as Passkey request failed: <reason>. A counter that did not increase is logged as Passkey counter did not increase with the passkey's ID.
  • No e-mails, no cron. The extension sends no e-mails and registers no scheduled tasks or commands. Notifications that Paymenter sends on its Login event are Paymenter's own.