diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java index fd3825a10..44e3d6237 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java @@ -181,8 +181,7 @@ public class OAuth { switch (response.error) { case "invalid_grant": - if (response.errorDescription.contains("The user must sign in again and if needed grant the client application access to the requested scope") || - response.errorDescription.contains("The user could not be authenticated as the grant is expired")) { + if (response.errorDescription.contains("AADSTS70000")) { throw new CredentialExpiredException(); } break;