Closed rota-rossi closed 2 years ago
Have you tried removing pauseInstanceWhileRefreshing
?
See request interceptor example in the docs. Basically for other requests you should have an interceptor that binds that token when they're triggered (as the token might have changed if the first request is caught in the refreshAuthLogic
callback adn you re-authorize the user).
Symptom: after receiving a 401 error, the refresh endpoint is called, and the following requests properly use the new access token - but the original request is never re-triggered, and the auth action returns
TypeError: undefined is not a function
.Code:
Can someone point me what I might be doing wrong?