Postman: set Environment Variable
If that's the only thing you get back in the response body, why are you adding 'message'?
Use data.token
or just use pm.response.json().token
and remove the variable declaration.
If that's the only thing you get back in the response body, why are you adding 'message'?
Use data.token
or just use pm.response.json().token
and remove the variable declaration.