Replies: 1 comment 1 reply
-
The result of @ref is stored in the Variables. You just need to override this variable. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have
login.http
file which contains login request. Then in other .http files I useto use the access token returned in login response. This token is valid for 5 minutes. How can I write a project local hook (or any other automatic mechanism) that will check any response status code if it is 401 and invalidate the cached login response so when I run the same failed request again it will rerun the login request again, the same way as if the login response was not yet cached? I know I can use @forceRef, but I don't want to call login with every call, only after it expires. I have tried calling
api.sessionStore.reset()
but that doesn't work.Beta Was this translation helpful? Give feedback.
All reactions