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 f81e2b345..fd3825a10 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java @@ -181,7 +181,8 @@ 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")) { + 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")) { throw new CredentialExpiredException(); } break;