Fix[auth]: unexpectedly try to get token from local acc

This commit is contained in:
khanhduytran0 committed 2024-04-16 19:55:56 +07:00
1 parent 0a87c9613e
commit 89c9ad4c05
1 file changed
+3 -1
@@ -23,7 +23,9 @@ public class MinecraftAccount
public static MinecraftAccount parse(String content) throws JsonSyntaxException {
MinecraftAccount account = Tools.GLOBAL_GSON.fromJson(content, MinecraftAccount.class);
// Read access token from keychain
account.accessToken = getAccessTokenFromKeychain(account.xuid);
if (account.xuid != null) {
account.accessToken = getAccessTokenFromKeychain(account.xuid);
}
return account;
}