Fix #2048: 当微软账户 Token 过期时应当刷新账户 (#3651)

This commit is contained in:
Glavo
2025-02-25 20:50:49 +08:00
committed by GitHub
parent c513d00c50
commit 1c163934ee

View File

@@ -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 {