WebAuthn Account owners are currently supported on the following Smart Account implementations:
toCoinbaseSmartAccount
Import
Usage
Returns
WebAuthnAccount
A WebAuthn Account.
Parameters
credential
- Type:
P256Credential
getFn
- Type:
(options: CredentialRequestOptions) => Promise<Credential | null> - Default:
window.navigator.credentials.get
rpId
- Type:
string - Default:
window.location.hostname