From f547a84a8d3ae0b9f34ca43caac5039899950fd1 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 24 Feb 2023 15:47:17 +0900 Subject: - reauth token Signed-off-by: syeyoung --- .../java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'loader/src') diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java index 384fe5b2..30152423 100644 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java @@ -20,6 +20,7 @@ package kr.syeyoung.dungeonsguide.launcher.auth; import com.google.common.base.Throwables; import com.google.common.util.concurrent.ThreadFactoryBuilder; +import kr.syeyoung.dungeonsguide.launcher.Main; import kr.syeyoung.dungeonsguide.launcher.auth.token.*; import kr.syeyoung.dungeonsguide.launcher.events.AuthChangedEvent; import kr.syeyoung.dungeonsguide.launcher.exceptions.auth.AuthFailedException; @@ -91,7 +92,8 @@ public class AuthManager { boolean shouldReAuth = false; if (getToken().isUserVerified() && !getToken().getUUID().replace("-", "").equals(Minecraft.getMinecraft().getSession().getPlayerID())) { shouldReAuth = true; - } // TODO: try auth, check if current dungeons guide version is accessible, and unload it if inaccessible. + Main.getMain().unloadWithoutStacktraceReference(); + } if (!getToken().isAuthenticated()) { shouldReAuth = true; } -- cgit