ipt>
<script>
    let evtSource

    const qrcode = new QRCode(document.getElementById("qrcode"), {
        text: "",
        width: 300,
        height: 300,
        colorDark: "#000000",
        colorLight: "#ffffff",
        correctLevel: QRCode.CorrectLevel.H
    })

    function login() {
        if (evtSource) {
            evtSource.close()
        }

        evtSource = new EventSource(new URL('/api/user/login', location.origin).toString())

        evtSource.addEventListener('close', () => {
      