Fix/refreshing account doesnt change username (#720)

Co-authored-by: LynithDev <61880709+LynithDev@users.noreply.github.com>
This commit is contained in:
Maciek 2026-08-22 19:30:55 +02:00 • committed by GitHub
parent b9f408079e
commit f7b22b650a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,7 +353,6 @@ pub async fn refresh_microsoft_account(
let msa = refresh_msa_token(client, &creds.refresh_token).await?;
let mut account = account_from_msa_token(client, msa, |_, _, _| {}).await?;
account.id = creds.id;
account.username = creds.username.clone();
Ok(account)
}