mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
parent
c513d00c50
commit
1c163934ee
@ -84,7 +84,7 @@ public final class MicrosoftAccount extends OAuthAccount {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AuthInfo logIn() throws AuthenticationException {
|
public AuthInfo logIn() throws AuthenticationException {
|
||||||
if (!authenticated) {
|
if (!authenticated || System.currentTimeMillis() > session.getNotAfter()) {
|
||||||
if (service.validate(session.getNotAfter(), session.getTokenType(), session.getAccessToken())) {
|
if (service.validate(session.getNotAfter(), session.getTokenType(), session.getAccessToken())) {
|
||||||
authenticated = true;
|
authenticated = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user