DEV Community

Discussion on: Postman tips - Autosave auth token on the session

Collapse
 
dannydainton profile image
Danny Dainton

Awesome! Thanks for sharing this tip with others :)

You could even go one further and reduce this to a single line:

pm.environment.set("token", pm.response.json().token); :)