Imports to top of file.

This commit is contained in:
Leo Vasanko
2026-02-18 17:47:57 +00:00
parent 13b649a92b
commit 5c4f6908cd
4 changed files with 6 additions and 6 deletions
@@ -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)