@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Function extractPublicKeyFromAttestation

    • Extract the COSE public key from a WebAuthn attestation object. The attestation object is CBOR-encoded with an authData field that contains the credential public key in COSE_Key format starting at byte offset 55 + credIdLen.

      Parameters

      • attestationObjectEncoded: string

      Returns { algorithm: number; publicKey: Uint8Array }