coderef

Web authentication easy public key accessBaseline · Widely available

The getAuthenticatorData(), getPublicKey(), and getPublicKeyAlgorithm() methods of AuthenticatorAttestationResponse access credential data inside attestationObject without the need to parse it.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Oct 24, 2023. Widely available since Apr 24, 2026.

Browser support

DesktopChrome
1–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155
Edge
12–84Not supported
85+Supportedsince Aug 27, 2020
Current: 154
Firefox
1–118Not supported
119+Supportedsince Oct 24, 2023
Current: 157
Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27
MobileChrome Android
18–84Not supported
85+Supportedsince Aug 25, 2020
Current: 155
Firefox Android
4–118Not supported
119+Supportedsince Oct 24, 2023
Current: 157
Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: getAuthenticatorData.

Feature detection

JS · check before using
if ("AuthenticatorAttestationResponse" in globalThis && "getPublicKey" in AuthenticatorAttestationResponse.prototype) {
  // AuthenticatorAttestationResponse.getPublicKey is available
}

Sub-features

Support for each part of the feature (6). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
AuthenticatorAttestationResponse.getAuthenticatorData8585119168511916
AuthenticatorAttestationResponse.getPublicKey8585119168511916
AuthenticatorAttestationResponse.getPublicKey.algorithm_eddsa8585119✕85119✕
AuthenticatorAttestationResponse.getPublicKey.algorithm_es2568585119168511916
AuthenticatorAttestationResponse.getPublicKey.algorithm_rs2568585119✕85119✕
AuthenticatorAttestationResponse.getPublicKeyAlgorithm8585119168511916