register
Registers a new WebAuthn credential (passkey) using the Android Credential Manager.
Triggers the platform credential creation flow, prompting the user to create a new passkey using biometric authentication, screen lock, or a security key. The created credential uses the ES256 algorithm (ECDSA with P-256/secp256r1 curve).
Return
WebAuthnRegistrationResult containing the credential ID, public key, attestation object, transport hints, device type, and backup status.
Parameters
The challenge bytes to bind to the registration (typically 32 bytes). Used as-is in the WebAuthn ceremony.
User identifier bytes for discoverable credentials (typically random).
User-friendly display name for the credential.
Throws
if the user cancels the registration dialog.
if credential creation fails for any other reason (network error, authenticator error, etc.).