Files
Blake Matthes 425f8f5f71 feat(frontend): migrated old > new silo adjustments
moved the apps around so we can use 1 url for cors bs
2025-10-25 17:22:51 -05:00

37 lines
667 B
Plaintext

meta {
name: Session
type: http
seq: 5
}
get {
url: {{url}}/lst/api/auth/get-session
body: none
auth: inherit
}
body:json {
{
"username": "matthes01",
"password": "nova0511"
}
}
script:post-response {
// grab the raw Set-Cookie header
const cookies = res.headers["set-cookie"];
// cookies is usually an array, e.g. ["auth_session=abcd123; Path=/; HttpOnly; Secure; SameSite=Lax"]
// Extract just the value part ("auth_session=abcd123")
const sessionCookie = cookies[0].split(";")[0];
// Save it as an environment variable
bru.setEnvVar("session_cookie", sessionCookie);
}
settings {
encodeUrl: true
timeout: 0
}