diff --git a/frontend/src/common/httpservice.ts b/frontend/src/common/httpservice.ts index 8204944..4bb3de3 100644 --- a/frontend/src/common/httpservice.ts +++ b/frontend/src/common/httpservice.ts @@ -17,17 +17,12 @@ const client = axios.create({ async function getAuthHeaders() { try { - const token = await auth0.getTokenSilently({ - authorizationParams: { - scope: "read:current_user", - audience: import.meta.env.VITE_AUTH0_AUDIENCE - } - }); + const token = await auth0.getTokenSilently(); return { Authorization: `Bearer ${token}` }; } catch (e) { - alert(`Unable to get access token: ${e}`); + alert(e); return {}; } } diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 00ebbfc..39fa280 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -41,25 +41,25 @@ const theme = createTheme({ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( - - - - - + + + + + - - - - - + + + + + , );