Replies: 2 comments 5 replies
-
If the same token is shared by all VUs, you could use a |
Beta Was this translation helpful? Give feedback.
5 replies
-
There's an example for this scenario here now: https://github.com/artilleryio/artillery/tree/main/examples/refresh-auth-token |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you suggest to handle re-freshing an auth token when testing API's that need this?
I use the before hook to make a request to get the token and then use that in the requests.
The problem I have is if trying to run a test for longer than an hour the token expires and I get 403's back from the API.
What would be the best way to refresh the token?
Beta Was this translation helpful? Give feedback.
All reactions