diff --git a/client-side/.env b/client-side/.env index 4655bc2cf..e15d05f74 100644 --- a/client-side/.env +++ b/client-side/.env @@ -1,3 +1,4 @@ REACT_APP_BASE_URL='http://localhost:3000' REACT_APP_SECRET_CODE_CAPVAL='6Ld5uBoqAAAAAKwPXqo5eanm9ZFSuOoBBSdl00pE' REACT_APP_SERVER_URL='http://localhost:5000' +REACT_APP_GOOGLE_CLIENT_ID='1074410346984-b9bsnokpb84s4afiim9t9d797k6orsvk.apps.googleusercontent.com' diff --git a/client-side/package-lock.json b/client-side/package-lock.json index e9beb0448..57a7885e1 100644 --- a/client-side/package-lock.json +++ b/client-side/package-lock.json @@ -17,6 +17,7 @@ "@mui/x-charts": "^7.10.0", "@mui/x-data-grid": "^7.9.0", "@mui/x-date-pickers": "^7.12.0", + "@react-oauth/google": "^0.12.1", "@reduxjs/toolkit": "^2.2.6", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", @@ -25,6 +26,7 @@ "axios": "^1.7.2", "dayjs": "^1.11.12", "formik": "^2.4.6", + "gapi-script": "^1.2.0", "html2canvas": "^1.4.1", "html2pdf.js": "^0.10.2", "jest": "^29.7.0", @@ -5706,6 +5708,16 @@ } } }, + "node_modules/@react-oauth/google": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.1.tgz", + "integrity": "sha512-qagsy22t+7UdkYAiT5ZhfM4StXi9PPNvw0zuwNmabrWyMKddczMtBIOARflbaIj+wHiQjnMAsZmzsUYuXeyoSg==", + "license": "MIT", + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, "node_modules/@react-spring/animated": { "version": "9.7.4", "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.7.4.tgz", @@ -15687,6 +15699,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gapi-script": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gapi-script/-/gapi-script-1.2.0.tgz", + "integrity": "sha512-NKTVKiIwFdkO1j1EzcrWu/Pz7gsl1GmBmgh+qhuV2Ytls04W/Eg5aiBL91SCiBM9lU0PMu7p1hTVxhh1rPT5Lw==", + "license": "MIT" + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", diff --git a/client-side/package.json b/client-side/package.json index 491be4732..f0fe8029c 100644 --- a/client-side/package.json +++ b/client-side/package.json @@ -12,6 +12,7 @@ "@mui/x-charts": "^7.10.0", "@mui/x-data-grid": "^7.9.0", "@mui/x-date-pickers": "^7.12.0", + "@react-oauth/google": "^0.12.1", "@reduxjs/toolkit": "^2.2.6", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", @@ -20,6 +21,7 @@ "axios": "^1.7.2", "dayjs": "^1.11.12", "formik": "^2.4.6", + "gapi-script": "^1.2.0", "html2canvas": "^1.4.1", "html2pdf.js": "^0.10.2", "jest": "^29.7.0", diff --git a/client-side/src/App.jsx b/client-side/src/App.jsx index dedb45f2f..0aaef8c3b 100644 --- a/client-side/src/App.jsx +++ b/client-side/src/App.jsx @@ -6,18 +6,22 @@ import { router } from './router/router.jsx'; import { store } from './redux/store.jsx'; import { SnackbarProvider } from 'notistack'; import './App.scss'; +import { GoogleOAuthProvider } from '@react-oauth/google'; + +const clientId = process.env.REACT_APP_GOOGLE_CLIENT_ID; function App() { - return ( - <> + return ( + - - -