Replies: 1 comment
-
I asked the Remix team about this and as you mention there's no way (yet) to support document and data responses. I will keep the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is this the suggested solution for auth middleware?
My problem is that useFetcher doesn't support Response.json() and native fetch doesn't support data(). You throw Response.json() for each 401 routes so if useFetcher is used to fetch the data it throws stream exception.
I don't know how to correctly return responses from middleware to cover all usecases (fetch, useFetcher) which correctly return 401 status.
Beta Was this translation helpful? Give feedback.
All reactions