Fix handling of auth token errors at page load
This commit is contained in:
parent
448cbfc92d
commit
16045d9c63
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ export async function ping() {
|
|||
features = json.features
|
||||
return json.username
|
||||
} else if (json.errcode === "auth_token_missing" || json.errcode === "auth_token_invalid") {
|
||||
if (!features) {
|
||||
await remoteGetFeatures()
|
||||
}
|
||||
return null
|
||||
}
|
||||
throw json
|
||||
|
|
Loading…
Reference in a new issue