Authenticator
Utility functions for constructing and parsing authenticator data and client data JSON.
Functions
| Name | Description |
|---|---|
Authenticator.getAttestationObject | Constructs a CBOR-encoded attestation object for testing WebAuthn registration verification. Combines the authenticator data with an attestation statement. |
Authenticator.getAuthenticatorData | Gets the authenticator data which contains information about the processing of an authenticator request (ie. from Authentication.sign). |
Authenticator.getClientDataJSON | Constructs the Client Data in stringified JSON format which represents client data that was passed to credentials.get() or credentials.create(). |
Authenticator.getSignCount | Extracts the signature counter from the authenticator data. The counter is a 4-byte big-endian unsigned integer at bytes 33–36. |

