Authentication, Tanstack Query, React Router
The problem is that if an authentication error is thrown in a query because a refresh token couldn't be refreshed or something similar, there's no way to catch that without making all queries
throwOnError and handling the auth error from the router.Any ideas or answers would be very much appreciated.