Fix[auth]: unexpectedly try to get token from local acc
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user