From 65cde8154684bccae28fe0c9dfe347ec149c501b Mon Sep 17 00:00:00 2001 From: Klaus Betz <78362353+klausbetz@users.noreply.github.com> Date: Thu, 16 May 2024 11:45:57 +0200 Subject: [PATCH] fix: invocation of getTransports call --- src/data/webAuthnRegister.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);