Replace cookie HTTP verification with butlerd's Profile.List + UseSavedLogin
Some checks failed
Build plugin / build (push) Has been cancelled

Butlerd stores credentials in its SQLite DB after the first password
login. On restart, Profile.List finds saved profiles and
Profile.UseSavedLogin refreshes them — no cookie persistence needed on
our side.
This commit is contained in:
Jose Falanga 2026-08-17 02:19:22 -03:00
parent 1931ae143a
commit d09bd2ae79
3 changed files with 37 additions and 114 deletions

View file

@ -100,7 +100,6 @@ func _on_save_button() -> void:
if method == 0:
# API key login
settings_manager.set_value("plugin.itch", "cookie", "")
settings_manager.set_value("plugin.itch", "username", "")
var api_key: String = api_key_box.text.strip_edges()
settings_manager.set_value("plugin.itch", "api_key", api_key)
@ -112,7 +111,6 @@ func _on_save_button() -> void:
var uname: String = username_box.text.strip_edges()
var password: String = password_box.text
settings_manager.set_value("plugin.itch", "username", uname)
settings_manager.set_value("plugin.itch", "cookie", "")
if uname == "" or password == "":
return
itch.login_with_password(uname, password)