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
I want to catch all 401 errors inside the onFetchError hook and request to my /refresh endpoint to get new access & refresh tokens and then re-fetch the previous request which caused the 401 error, but there is no information about the previous request inside the onFetchError's context.
Suggested solution
Provide request which caused error inside the onFetchError's context
Clear and concise description of the problem
I want to catch all 401 errors inside the onFetchError hook and request to my
/refresh
endpoint to get new access & refresh tokens and then re-fetch the previous request which caused the 401 error, but there is no information about the previous request inside the onFetchError's context.Suggested solution
Provide request which caused error inside the onFetchError's context
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: