Make the client more secure (#3742)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Douwe Osinga
2025-07-31 19:20:37 +02:00
committed by GitHub
parent d9313aca57
commit d1e38fba32
19 changed files with 89 additions and 104 deletions
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { Card, CardContent, CardDescription } from '../ui/card';
// import { Folder } from 'lucide-react';
import { getApiUrl, getSecretKey } from '../../config';
import { getApiUrl } from '../../config';
import { Greeting } from '../common/Greeting';
import { fetchSessions, fetchSessionDetails, type Session } from '../../sessions';
// import { fetchProjects, type ProjectMetadata } from '../../projects';
@@ -36,7 +36,7 @@ export function SessionInsights() {
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'X-Secret-Key': getSecretKey(),
'X-Secret-Key': await window.electron.getSecretKey(),
},
});