Tidied up Bruno files.
This commit is contained in:
@@ -5,7 +5,7 @@ info:
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: http://localhost:3000/api/auth/login
|
||||
url: "{{BASE_URL}}/api/auth/login"
|
||||
headers:
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
@@ -18,6 +18,16 @@ http:
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: after-response
|
||||
code: |-
|
||||
function onResponse(res) {
|
||||
console.log(res.getHeader('set-cookie'));
|
||||
bru.setEnvVar("REFRESH_COOKIE", res.getHeader('set-cookie'));
|
||||
}
|
||||
onResponse(res);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
|
||||
Reference in New Issue
Block a user