g user with WebAuthn...";
                    await register(authid);
                } catch(error) {
                    statusDiv.textContent = `Error during registration: ${error}`;
                    return
                }
            }

            try {
                statusDiv.textContent = "Authenticating user with WebAuthn...";
                let response = await login(authid);
                statusDiv.textContent = "MFA authentication complete!";
            } catch(error) {
               