mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix token validation.
This commit is contained in:
@@ -64,7 +64,7 @@ class Network {
|
||||
return;
|
||||
}
|
||||
const res = await this.getUserInfo(app.user!.username)
|
||||
if (!res.success) {
|
||||
if (!res.success && res.message.includes("Invalid token")) {
|
||||
app.token = null;
|
||||
app.user = null;
|
||||
app.saveData();
|
||||
|
Reference in New Issue
Block a user