mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
The sign-out buttons on the registration and profile take-over pages took every HTTP answer as success. A refused sign-out (the demo's 403, a 429, a 5xx) wiped the client caches and reloaded the page while the session stayed valid; on the take-over page a network failure was an unhandled rejection with no message at all. Both go through apiFetch now, which throws on a non-2xx answer, and say that the person is still signed in: inline on the registration page, as a toast on the take-over page. The message is the one the account menu's sign-out uses.