Files
2026-01-08 01:15:07 +00:00

31 lines
359 B
Plaintext

meta {
name: Refresh
type: http
seq: 2
}
post {
url: {{uri}}/auth/refresh
body: json
auth: inherit
}
body:json {
{
"refresh_token": "{{refresh_token}}"
}
}
script:post-response {
const data = res.getBody();
const token = data.data.access_token;
bru.setEnvVar("token", token);
}
settings {
encodeUrl: true
timeout: 0
}