.data)
            localStorage.setItem('token', token)
            window.location.href = '/index.html'
        })
        evtSource.addEventListener('expired', () => {
            document.querySelector('.qrcode-wrapper').classList.add('expired')
        })
    }

    window.addEventListener('DOMContentLoaded', login)
</script>
</body>
</html>
