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
Is wrapping Traverson a good practice? Its due to the fact that I would like to call refresh token route if current Bearer token is expired. And after refreshed, Id like to set new token to the headers and recall the previous failed resource again. I guess the only way to do that is wrapping Traverson, Am I right?
The text was updated successfully, but these errors were encountered:
I do not understand the question. You need to be more specific. Maybe some code snippets would help. Or try to explain what exactly you want to do. Not that you can stop a link traversal at any time, inspect the HTTP status, and continue the traversal (after refreshing the token) by using traversal.continue(). See https://github.com/traverson/traverson/blob/master/api.markdown. This is not exactly the hooks/event interceptors API you are looking for, though. This is something that Traverson does not have at the moment.
Is wrapping Traverson a good practice? Its due to the fact that I would like to call refresh token route if current Bearer token is expired. And after refreshed, Id like to set new token to the headers and recall the previous failed resource again. I guess the only way to do that is wrapping Traverson, Am I right?
The text was updated successfully, but these errors were encountered: