You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(nextjs): wrap proxy and refresh json() calls in try/catch, replace throw with logout
Three uncaught exceptions that crash middleware with 500:
- proxy path: response.json() fired before response.ok check, returns 502 on non-JSON
- refresh path: refreshResponse.json() now catches non-JSON bodies and calls logout()
- refresh path: missing id_token now calls logout() instead of throwing
Also remove duplicate JSDoc paragraph and fix two em-dashes in comments.
0 commit comments