I have a very simple API response, for a POST Request. (Basically this response is a JWT Token)
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJJbnZlbnRvcnlTZXJ2aWNlQWNjZXNzVG9r........."
I am trying to add this as an Authorization token in Environment variable. But its throwing me an error.
Tests code i have written is var response = JSON.parse(responseBody); pm.environment.set("Authorization", response);
I am getting following error for the same.
"Unexpected token 'e' at 1:1 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJJbnZlbnRvcnlTZXJ2aWNlQWNjZXNzVG"