fix/admin-setup #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/admin-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix/admin-setupto wip: fix/admin-setupProtectedLayout's verify_auth treated any non-success response from /api/auth/me as "token invalid" and silently bounced the user to /login. When the DB was slow/unready, a successful login was immediately undone by a 5xx on /api/auth/me, leaving the user on a freshly-remounted Login component with no error message. - verify_auth now returns AuthVerdict {Valid, Invalid, Unknown}. Only 401/403 triggers clear_auth + redirect; 5xx and network errors return Unknown so the child page renders and surfaces its own fetch errors. - clean_error rejects HTML bodies and oversized blobs so reverse-proxy error pages fall through to "Something went wrong on the server. Please try again later." instead of splatting raw markup into the UI. - login.rs network-error branch now shows "Can't reach the server right now. Please try again in a moment." and logs the raw error via tracing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>wip: fix/admin-setupto WIP: wip: fix/admin-setupWIP: wip: fix/admin-setupto wip: fix/admin-setupwip: fix/admin-setupto fix/admin-setup