26 lines
364 B
Plaintext
26 lines
364 B
Plaintext
meta {
|
|
name: Login
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/auth/login
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"email": "arthur@tipote.dev",
|
|
"password": "password123"
|
|
}
|
|
}
|
|
|
|
script:post-response {
|
|
if (res.status === 201) {
|
|
bru.setVar("accessToken", res.body.accessToken);
|
|
bru.setVar("refreshToken", res.body.refreshToken);
|
|
}
|
|
}
|