diff --git a/auth-proxy/public/wallet.js b/auth-proxy/public/wallet.js index d71b514..467e086 100644 --- a/auth-proxy/public/wallet.js +++ b/auth-proxy/public/wallet.js @@ -266,7 +266,7 @@ async function signInWithMnemonic(mnemonic, root) { if (btn) btn.disabled = true; try { const { privateKey, cashaddr } = await keypairFromMnemonic(mnemonic); - const chalRes = await fetch("/challenge", { + const chalRes = await fetch("challenge", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ cashaddr, state, redirect_uri: redirectUri }), @@ -274,7 +274,7 @@ async function signInWithMnemonic(mnemonic, root) { if (!chalRes.ok) throw new Error("challenge request failed"); const { nonce, message } = await chalRes.json(); const signature = signMessage(privateKey, message); - const verRes = await fetch("/verify", { + const verRes = await fetch("verify", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ nonce, signature }),