Commit 59807dc
Ravi Singh
fix: stop full page reload on 401 — was causing iOS keyboard loop
The api.js 401 handler used window.location.href = '/login' which
triggers a full page reload. On iOS, this manifests as the page
reloading the instant the keyboard appears (any background SSE/fetch
hitting 401 triggers it). Now just clears the token and throws,
letting React Router handle the redirect without page reload.1 parent baf9d3c commit 59807dc
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
0 commit comments