Fix: auth not refreshing on launch #15
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user