Passkeys
Optional sign-in credentials and the capabilities they unlock.
A passkey is a WebAuthn credential protected by your device or credential provider. Flow supports accounts without one: email sign-in authenticates the same kind of stable identity, but does not supply a signing credential or wallet address.
Registration and sign-in
Create a passkey during signup or connect one later from Manage account → Login → Passkey → Connect. Registration and verification use the Flow ID relying-party configuration. Production Flow uses id.flow.industries; a self-hosted instance must configure its own relying-party ID and allowed origins.
Approve the browser or device prompt to create or use the credential. Device support, synchronization, and recovery depend on your passkey provider. Cancelling a prompt does not complete registration. The account page shows Ready to use when the passkey is connected.
Flow ID handles sign-in on its top-level /authorize page. Apps should use the SDK's redirect flow rather than creating credentials at each app origin or implementing iframe authentication.
Recreate your passkey
Replace a lost or compromised passkey from Manage account → Login, where the connected Passkey row offers Recreate. Recreating needs a code sent to a verified email, so Flow asks you to confirm or add an email first; it then emails a step-up code and, once you enter it, prompts your device to create the replacement. Cancelling the device prompt changes nothing.
The replacement becomes the account's only passkey: the previous credential stops working and the account's wallet address changes to the one derived from the new key, which apps pick up on their next sign-in or refresh. You are signed out everywhere else, so sign in again with the new passkey. Linked NOTE devices stay connected so they can still open your notepads — review or remove them under Linked devices in NOTE.
A replacement whose provider lacks the WebAuthn PRF extension still signs in and signs, but cannot open NOTE vaults; Flow warns before saving such a key. A recreated passkey appears as Passkey replaced in security activity.
Signing and encryption
The SDK exposes a credential and wallet address when available. Signing controls must check both; a registered account alone is insufficient. See Signing.
Some apps also need the WebAuthn PRF extension for encryption. A passkey's existence or “Ready to use” label does not prove PRF support. Such apps can start flow.connectPasskey({ requirePrf: true, returnTo: "/" }) and verify the capability during their setup. The setup is bound to the current registered account and returns to the app without creating a new identity.
Access keys are separate delegated signing keys. They do not replace the passkey as the root credential and do not create a Flow login session. See Access keys.
Verify an assertion yourself
An app that checks a WebAuthn assertion against the account — rather than against whatever key a request carries — reads the account's registered passkeys and their public keys with listAccountPasskeys:
import { listAccountPasskeys } from "@flow-industries/id";
const passkeys = await listAccountPasskeys(flow);
// [{ credentialId, publicKey: "0x…", createdAt }]The call uses the signed-in account's bearer token, sends no cookie, and throws AccountPasskeysError with SIGN_IN_REQUIRED, ACCOUNT_CHANGED, UNAVAILABLE, or INVALID_RESPONSE. Each publicKey is the uncompressed P-256 point in FlowCredential's encoding — 0x followed by 128 lowercase hex digits. An account holds at most one passkey today, so read the result as a list rather than counting on a single entry.