mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix token validation.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user