Fix handling of auth token errors at page load

This commit is contained in:
Tulir Asokan 2019-01-07 09:26:43 +02:00
parent 448cbfc92d
commit 16045d9c63

View File

@ -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