Fix: auth not refreshing on launch #15

This commit is contained in:
Kr4ight
2026-04-06 20:36:41 +02:00
parent 9769a2d6c1
commit 450ade4b53
6 changed files with 40 additions and 29 deletions
+5 -2
View File
@@ -125,8 +125,11 @@ pub async fn auth_refresh(uuid: String) -> Result<MinecraftAccount, String> {
}
#[command]
pub fn auth_list() -> Result<Vec<MinecraftAccount>, String> {
Ok(load_accounts())
pub fn auth_list() -> Result<Vec<(String, String)>, String> {
Ok(load_accounts()
.iter()
.map(|account| (account.uuid.clone(), account.username.clone()))
.collect())
}
#[command]