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