refactor: remove auth inherit and token handling from login request

- Remove 'auth: inherit' from POST request configuration
- Remove post-response script that set token environment variable
- Clean up documentation formatting

This simplifies the login request configuration as authentication
will now be handled via HTTP-only cookies instead of bearer tokens.
This commit is contained in:
2026-02-16 09:17:56 -05:00
parent b5156bbe16
commit a0e9a2b6e6
-18
View File
@@ -7,7 +7,6 @@ meta {
post {
url: {{base_url}}/api/auth/login
body: json
auth: inherit
}
body:json {
@@ -17,23 +16,6 @@ body:json {
}
}
// Test credentials align with Go integration tests
// See TEST_DATA.md for shared test data documentation
script:post-response {
function onResponse(res) {
let data = res.getBody();
// If successful registration, set token environment variable
if (res.getStatus() === 201 || res.getStatus() === 200) {
if (data && data.access_token) {
return bru.setEnvVar("token", data.access_token, { persist: true });
}
}
}
onResponse(res);
}
settings {
encodeUrl: true
timeout: 0