PublicKeyCredentialCreationOptions
PublicKeyCredential is a class defined by the Web Authentication API (WebAuthn) that represents a credential based on public-key cryptography used for user authentication. It is one of the credential types supported by WebAuthn, alongside PasswordCredential.
Instances of PublicKeyCredential are obtained by the client through navigator.credentials.create() when registering a new credential, or
An instance exposes properties such as id, type (set to 'public-key'), and rawId. Its response property is
PublicKeyCredential relies on a key pair generated by a trusted authenticator. The private key remains on the
Security and privacy considerations include resistance to phishing, reliance on hardware or platform authenticators, and the
Standards and interoperability: WebAuthn is developed by the W3C; CTAP (Client To Authenticator Protocol) defines the