This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

PublicKeyCredential is the interface to a credential created by the Web Authentication API exension to the Credential Management API.


PublicKeyCredential.type Read only
Inherited from Credential. Always set to "public-key" for PublicKeyCredentials. Read only
Inherited from Credential and overridden to be a base64 encoding of PublicKeyCredential.rawId.
PublicKeyCredential.rawId Read only
An ArrayBuffer that holds the globally unique identifier for this PublicKeyCredential. This identifier can be used to look up credentials for future calls to CredentialsContainer.get.
PublicKeyCredential.response Read only
An instance of an AuthenticatorResponse object, either AuthenticatorAttestationResponse if the PublicKeyCredential was the results of a create() call, or AuthenticatorAttestationResponse if the PublicKeyCredential was the result of a get() call.


If any extensions were requested, this method will return the results of processing those extensions.


Specification Status Comment
Web Authentication Level 1 Working Draft Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support Nightly build Nightly build No support No support No support
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support No support Nightly build No support No support No support No support No support

Document Tags and Contributors

 Contributors to this page: apowers313
 Last updated by: apowers313,