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
My interceptor seems to work as expected. If a request gets a 401 response (token expired), I refresh the token. On success, for the new token, I want to complete the original request with the updated token, which I'm attempting with axios(error.config). This works fine...but the original request response comes up `undefined'.
I can get by with router.go(router.currentRoute) that I have commented out, and most won't recognize a route reload in Vuejs. I would really like it to be seamless, especially if it's a POST request where the user input form fields, etc.
Anyone have any suggestions how I can get the data in the response instead of undefined?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My interceptor seems to work as expected. If a request gets a 401 response (token expired), I refresh the token. On success, for the new token, I want to complete the original request with the updated token, which I'm attempting with
axios(error.config)
. This works fine...but the original request response comes up `undefined'.I can get by with
router.go(router.currentRoute)
that I have commented out, and most won't recognize a route reload in Vuejs. I would really like it to be seamless, especially if it's a POST request where the user input form fields, etc.Anyone have any suggestions how I can get the data in the response instead of
undefined
?Beta Was this translation helpful? Give feedback.
All reactions