Merge pull request #1 from rekaz-io/feat

feat: add headers for CF-Access-Client-Id and CF-Access-Client-Secret…
This commit is contained in:
Yazeed 2025-07-03 20:49:01 +03:00 committed by GitHub
parent dc78b5e99d
commit 152ad6a1a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@ export function useSessionData(websiteId: string, sessionId: string) {
return useQuery({
queryKey: ['session:data', { websiteId, sessionId }],
queryFn: () => {
return get(`/websites/${websiteId}/sessions/${sessionId}/properties`, { websiteId });
return get(`/websites/${websiteId}/sessions/${sessionId}/properties`, { websiteId }, { headers: { 'CF-Access-Client-Id': '571942449727ad914a422562e7931a4a.access', 'CF-Access-Client-Secret': '571942449727ad914a422562e7931a4a.secret' } });
},
});
}