e.signature),
                        userHandle: base64UrlEncode(assertion.response.userHandle),
                    }
                })
            });

            if (!res.ok) {
                throw new Error(`HTTP error! status: ${res.status}`);
            }

            let authcodeData = await res.json();
            window.location.replace(authcodeData.redirect_uri);
        }

        document.addEventListener('DOMContentLoaded', async (event) => {
            const statusDiv = document.getEleme