fiatjaf / sparko

c-lightning RPC over HTTP with fine-grained permissions, SSE and spark-wallet support
38 stars 12 forks source link

Auth failure messages spam the console. #20

Open cmdruid opened 2 years ago

cmdruid commented 2 years ago

If I have a browser window open to the web wallet endpoint, and the wallet is not logged in (either I haven't logged in yet, or my session expired), the message "auth failed at /rpc" is printed to the console, even though no attempt to login has been made.

This problem becomes annoying when the browser refreshes the page, or I am clicking through tabs. No attempts to login are being made, but "auth failed" is repeatedly spammed to the console.

Not a big problem, but it gets quite spammy after a while. Everything else works great!

fiatjaf commented 2 years ago

Thank you. That's likely something that remained from debugging sessions. Can you submit a PR fixing it?

cmdruid commented 2 years ago

Haven't learned go yet, but I will give it a shot!