This is the answer if it's just a response without any other key-value pairs, but just the bearer token as a response.
let data =res.body ; bru.setEnvVar("token",data);