the auth provider has been improved and the README was extended

This commit is contained in:
2025-01-10 13:04:42 +01:00
parent 5f0ffc703a
commit 102acb0668
6 changed files with 31 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
import { useQueryEngine } from "@core";
export const dataProviderExtension = () => {
const { fetchCommon } = useQueryEngine();
return {
person: () =>
fetchCommon(
"http://localhost:8081/core/api/admin/person",
{
headers: new Headers({
Accept: "application/json",
'X-XSRF-TOKEN': 'c3aKjTfLsPSdmiMtTaj933RbsQMR6IWmf9C5ZImMh9pCmDGkEETougKpiZew-UcZe4XJ5xE4nDpwirWLR-SOXbm94-Im-QLB',
'Cookie': 'LAST_LOGIN_LOCATION=http://localhost:3000; SESSION=652f7c23-fe94-4727-a980-59052e75aab2; XSRF-TOKEN=c2b75b9c-cd46-48ec-9ab0-847901d8da3e',
}),
},
),
};
};