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:
@@ -27,7 +27,6 @@ class Network {
|
||||
}
|
||||
|
||||
init() {
|
||||
this.testToken()
|
||||
if (import.meta.env.MODE === 'development') {
|
||||
this.baseUrl = 'http://localhost:3000';
|
||||
this.apiBaseUrl = 'http://localhost:3000/api';
|
||||
@@ -57,6 +56,7 @@ class Network {
|
||||
(error) => {
|
||||
return Promise.reject(error);
|
||||
})
|
||||
this.testToken()
|
||||
}
|
||||
|
||||
async testToken(): Promise<void> {
|
||||
|
Reference in New Issue
Block a user