feat: implement session management with SessionService and SessionPlugin; refactor query execution to handle session cookies; update token and query handling for improved session tracking

This commit is contained in:
Boris D
2025-10-10 14:03:21 +03:00
parent 5513dccc11
commit 210253628c
13 changed files with 205 additions and 25 deletions

View File

@ -6,7 +6,12 @@ export default async (token: string, queryData: Record<string, any>) => {
const response = await axios.post(
`${config.url}/query/run/${token}`,
queryData,
{ headers: { "x-api-token": "efbeccd6-dde1-47dc-b3aa-4fbd773d5429" } }
{
headers: {
"x-api-token": "efbeccd6-dde1-47dc-b3aa-4fbd773d5429",
Cookie: `x-session-id=psaCHcYFMrt6RnUz_1760094020243`,
},
}
);
return response;