This is how you can do this
If Refresh_token is the header value
postman.setGlobalVariable("refresh_token",postman.getResponseHeader("Refresh_token") );
Official Documentation: https://www.getpostman.com/docs/postman/scripts/test_examples
This is how you can do this
If Refresh_token is the header value
postman.setGlobalVariable("refresh_token",postman.getResponseHeader("Refresh_token") );
Official Documentation: https://www.getpostman.com/docs/postman/scripts/test_examples