Passkeys

Passkeys are account credentials. The host may unlock the credential with fingerprint, face, device PIN, password manager, phone, or hardware key, but the app receives WebAuthn registration or authentication data that the server must verify.
Start with the Passkeys guide to add the feature to your app. Return here for operation names, request and result types, provider contracts, and target configuration.

Public API

Item
Value
Effect helper or entrypoint
ctx.effects.passkeys()
Provider trait or host contract
PasskeyHost
Test provider or test entrypoint
MemoryPasskeyHost
Primary request types
PasskeyRegistrationRequest / PasskeyAuthenticationRequest
Primary success types
PasskeyAvailability / PasskeyRegistrationResult / PasskeyAuthenticationResult
Error type
PasskeyError
CLI value
passkeys

Operations

Method or operation
Purpose
Request
Success
availability
Check secure context, platform authenticator, cross-platform authenticator, and conditional UI support.
()
PasskeyAvailability
register
Create a new credential from a server registration challenge.
PasskeyRegistrationRequest
PasskeyRegistrationResult
authenticate
Create an assertion from a server authentication challenge.
PasskeyAuthenticationRequest
PasskeyAuthenticationResult
cancel
Cancel an active credential prompt where possible.
()
()

Provider contract

Register a PasskeyHost with .with_passkey_host(...). Use MemoryPasskeyHost for reducer tests. A real provider only gathers credential data; the relying-party server must verify registration and authentication results before the app treats the user as signed in.
The browser shell includes a WebAuthn provider. The native mobile shell exposes .with_passkey_host(...), but its default is UnsupportedPasskeyHost; an Android or iOS app must register a platform-specific provider before native passkey requests can succeed. Declaring passkeys with fission add-capability records the app’s requirement, but it does not install Android Credential Manager or an Apple AuthenticationServices adapter. The Android passkey tutorial shows the shared Rust flow and identifies this native integration boundary.
Providers should return typed errors for unsupported operations, denied permissions, unavailable hardware, cancellation, timeouts, and platform policy restrictions. Silent success is not acceptable because reducers need a truthful result to update state and explain what happened.

Platform configuration

The CLI records the capability, but domain association is product-specific. Web needs a secure origin and relying-party id. iOS and macOS usually need associated domains such as webcredentials:example.com. Android usually needs Digital Asset Links. Follow Android’s official Credential Manager prerequisites and passkey sign-in guide. Fission cannot invent the domain or app identifiers because they must match the production deployment.
When a CLI value exists, fission add-capability <value> --project-dir . records the capability in fission.toml and updates generated target files where Fission can do that deterministically. Android generated configuration lives in platforms/android/AndroidManifest.xml. iOS generated configuration lives in platforms/ios/Info.plist and platforms/ios/Entitlements.plist when entitlements are required. Desktop package metadata is reviewed during packaging because Windows, macOS, and Linux use different permission and distribution systems.

Runtime behavior

Capability calls are queued from reducers through ctx.effects. The active shell resolves the request with the registered provider and then dispatches the configured success or error action. Missing providers should produce typed unsupported errors. Packaging mistakes usually show up as denied permissions, missing entitlements, missing route registration, or provider-specific failures.