Imports to top of file.

This commit is contained in:
LeoVasanko committed 2026-02-18 17:47:57 +00:00
1 parent 39000ef831
commit fa1e69d58b
4 files changed
+6 -6

No files matched your search

@@ -163,6 +163,9 @@ async function startRemoteAuth() {
// PoW challenge
const powChallenge = await ws.receive_json()
if (powChallenge.status) {
throw new Error(powChallenge.detail || `Failed to connect: ${powChallenge.status}`)
}
if (powChallenge.pow) {
const challenge = b64dec(powChallenge.pow.challenge)
const nonces = await solvePoW(challenge, powChallenge.pow.work)