Skip to content

Instantly share code, notes, and snippets.

@miroswd
Created January 26, 2023 14:33
Show Gist options
  • Save miroswd/2a497901306202394f615ad3205ba2b2 to your computer and use it in GitHub Desktop.
Save miroswd/2a497901306202394f615ad3205ba2b2 to your computer and use it in GitHub Desktop.
Script to get token with test in postman
let response = pm.response.json();
let token = response.token
console.log('token ->', token)
pm.environment.set("token",token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment