From 1c163934ee9d3c7b46d49ee038afeb808620859e Mon Sep 17 00:00:00 2001 From: Glavo Date: Tue, 25 Feb 2025 20:50:49 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#2048:=20=E5=BD=93=E5=BE=AE=E8=BD=AF?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=20Token=20=E8=BF=87=E6=9C=9F=E6=97=B6?= =?UTF-8?q?=E5=BA=94=E5=BD=93=E5=88=B7=E6=96=B0=E8=B4=A6=E6=88=B7=20(#3651?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/auth/microsoft/MicrosoftAccount.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/microsoft/MicrosoftAccount.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/microsoft/MicrosoftAccount.java index ef9401630..5dbb5b751 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/microsoft/MicrosoftAccount.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/auth/microsoft/MicrosoftAccount.java @@ -84,7 +84,7 @@ public final class MicrosoftAccount extends OAuthAccount { @Override public AuthInfo logIn() throws AuthenticationException { - if (!authenticated) { + if (!authenticated || System.currentTimeMillis() > session.getNotAfter()) { if (service.validate(session.getNotAfter(), session.getTokenType(), session.getAccessToken())) { authenticated = true; } else {