I have checked the following:
This bug is:
Bruno version
4.5.0
Operating System
Windows 11
Describe the bug
Im trying to set the a new valiue for an env variable after Login endpoint is consumed, but after the endpoint response the variable is not being updated, in the Post Response I have this script
const body = res.getBody();
bru.setEnvVar("token", body.token);
const token = bru.getEnvVar("token");
console.log("TOKEN ACTUAL =>", token);
the last log shows the token correctly, but when I check directly the value of the env variable it is still empty
also this image is showing up many times
.bru file to reproduce the bug
bruno.json
Screenshots/Live demo link

I have checked the following:
This bug is:
Bruno version
4.5.0
Operating System
Windows 11
Describe the bug
Im trying to set the a new valiue for an env variable after Login endpoint is consumed, but after the endpoint response the variable is not being updated, in the Post Response I have this script
const body = res.getBody();
bru.setEnvVar("token", body.token);
const token = bru.getEnvVar("token");
console.log("TOKEN ACTUAL =>", token);
the last log shows the token correctly, but when I check directly the value of the env variable it is still empty
also this image is showing up many times
.bru file to reproduce the bug
bruno.json
Screenshots/Live demo link