Hi @inetkox
Welcome to the community forum
You can use the example in Periodically refreshing a token aside a script - #3 by codebien, without waiting for the 401
(which might mess with your test stats). And we have a concrete example in Generated Token every 10 mins and use it during load test - #10 by immavalls2.
Your approach is working only for that iteration, I believe, since AUTHORIZATION_TOKEN = TOKENS[0]
will assign the values obtained in the setup function.
I hope this helps.
Cheers!