Fixed PM token refreshing.

This commit is contained in:
2026-10-08 13:40:07 +02:00
parent e4326831e8
commit ef2c299ca4
2 changed files with 10 additions and 1 deletions
@@ -6,4 +6,13 @@ body:
content:
grant_type: refresh_token
refresh_token: "{{refresh_token}}"
scripts:
- type: afterResponse
code: |-
var access_token = pm.response.json()["access_token"];
pm.collectionVariables.set("access_token", access_token);
var refresh_token = pm.response.json()["refresh_token"];
pm.collectionVariables.set("refresh_token", refresh_token);
language: text/javascript
order: 2000
@@ -14,6 +14,6 @@ scripts:
pm.collectionVariables.set("access_token", access_token);
var refresh_token = pm.response.json()["refresh_token"];
pm.collectionVariables.set("refresh_token", access_token);
pm.collectionVariables.set("refresh_token", refresh_token);
language: text/javascript
order: 1000