meta { name: Login as Florian type: http seq: 2 } post { url: {{url}}/api/users/login body: json auth: inherit } body:json { { "username": "Florian", "password": "P@ssword!" } } script:post-response { if (res.status === 200) { bru.setEnvVar('userId', res.body.refreshToken.userId); bru.setEnvVar('jwt', res.body.accessToken); } }