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