mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Fix handling of auth token errors at page load
This commit is contained in:
parent
448cbfc92d
commit
16045d9c63
@ -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 New Issue
Block a user