30 lines
365 B
Plaintext
30 lines
365 B
Plaintext
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
|
|
}
|