Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Created May 26, 2023 15:51
Show Gist options
  • Select an option

  • Save bugcy013/2b2b70aeebfaf9ee134242637f4704fc to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/2b2b70aeebfaf9ee134242637f4704fc to your computer and use it in GitHub Desktop.

Revisions

  1. bugcy013 created this gist May 26, 2023.
    2 changes: 2 additions & 0 deletions postman_set_token_var.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    var res = pm.response.json();
    pm.environment.set('token', res.token);