feat: checkpoint
This commit is contained in:
29
.bruno/identity/login/code.bru
Normal file
29
.bruno/identity/login/code.bru
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user