Hey MC,
You can retrieve the authentication token from the response header via an “after operation” rule.
Inside the after operation rule:
restClient.getReponseHeaders()
Here’s a link to a thread on the developer forum with the same use case: Retrieve Custom authentication token from response header