Commit ba4b53b
fix: check Content-Type before parsing JSON in fetchExternal (#40958)
When auth is not configured, /.auth/me returns HTML instead of JSON,
causing a SyntaxError in the browser console. Added Content-Type
validation to throw a descriptive error that the catch block in
appSlice handles gracefully, falling back to anonymous user.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ea6367e commit ba4b53b
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
0 commit comments