Template
1
0
Files
boilerplate/.bruno/identity/login/code.bru
2025-11-23 22:57:43 +01:00

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
}