diff --git a/src/data/webAuthnRegister.ts b/src/data/webAuthnRegister.ts index 7d8a133..149a5c1 100644 --- a/src/data/webAuthnRegister.ts +++ b/src/data/webAuthnRegister.ts @@ -171,8 +171,6 @@ document.addEventListener('alpine:init', () => { result instanceof PublicKeyCredential && result.response instanceof AuthenticatorAttestationResponse ) { - const { getTransports } = result.response; - window.result = result; const publicKeyCredentialId = result.rawId; @@ -192,8 +190,8 @@ document.addEventListener('alpine:init', () => { { pad: false } ); - if (typeof getTransports === 'function') { - const transports = getTransports(); + if (typeof result.response.getTransports === 'function') { + const transports = result.response.getTransports(); if (transports) { transportsInput.value = getTransportsAsString(transports);