Fix token validation.

This commit is contained in:
2025-05-15 19:53:08 +08:00
parent 2fd3c0bacd
commit 75389bc3c0

View File

@@ -64,7 +64,7 @@ class Network {
return; return;
} }
const res = await this.getUserInfo(app.user!.username) const res = await this.getUserInfo(app.user!.username)
if (!res.success) { if (!res.success && res.message.includes("Invalid token")) {
app.token = null; app.token = null;
app.user = null; app.user = null;
app.saveData(); app.saveData();