meta { name: Code type: http seq: 3 } post { url: {{url}}/identity/login/code body: json auth: inherit } body:json { { "deviceId": "", "preAuthSessionId": "", "userInputCode": "" } } script:post-response { const cookies = res.getHeader('set-cookie'); if (cookies) { bru.setVar("cookie", cookies.join('; ')); } } settings { encodeUrl: true }