Skip to content

Commit 2913414

Browse files
authored
refactor auth (#727)
* start to add auth components * need await * fix import * add fontsource * working login * remove reducers * remove redux * use cookies for auth * fully implement cookie based auth * reduce further for session auth * refactor to account for existing advertiser * needs provider * change to useUser * adjustments * add types
1 parent 2f3614e commit 2913414

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1087
-1368
lines changed

.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
REACT_APP_SERVER_ADDRESS=http://localhost:4000/v1
1+
REACT_APP_SERVER_ADDRESS=/v1
2+
BACKEND_URL=http://localhost:4000

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ This bundle is then served to users as a static asset by [AWS CloudFront CDN](ht
1919

2020
### Local Development
2121

22-
- Create a `.env.local` file.
23-
- Set `BACKEND_URL=<>` to the endpoint you wish to pull data from
22+
- Create a `.env.local` file, or update `.env` file provided
23+
- Set `BACKEND_URL=<>` to the endpoint you wish to pull data from.
24+
25+
**Note:**
26+
We are using HTTPS in developer mode so that cookie based authentication works properly.
27+
You mat need to proceed through a certificate warning in order to develop locally.
2428

2529
#### Generating GraphQL Types:
2630

package-lock.json

+26-168
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"@date-io/moment": "2.16.1",
88
"@emotion/react": "11.10.6",
99
"@emotion/styled": "11.10.6",
10+
"@fontsource/mulish": "4.5.14",
11+
"@fontsource/poppins": "4.5.10",
1012
"@mui/icons-material": "5.11.16",
1113
"@mui/lab": "5.0.0-alpha.125",
1214
"@mui/material": "5.11.16",
@@ -17,24 +19,18 @@
1719
"date-fns": "2.29.3",
1820
"date-fns-tz": "2.0.0",
1921
"formik": "2.2.9",
20-
"immer": "9.0.21",
2122
"graphql": "16.6.0",
2223
"highcharts": "10.3.3",
2324
"highcharts-react-official": "3.2.0",
25+
"immer": "9.0.21",
2426
"jwt-decode": "3.1.2",
2527
"lodash": "4.17.21",
2628
"moment": "2.29.4",
2729
"react": "17.0.2",
2830
"react-dom": "17.0.2",
29-
"react-redux": "7.2.9",
3031
"react-router-dom": "5.3.4",
3132
"react-table": "7.8.0",
3233
"react-topbar-progress-indicator": "4.1.1",
33-
"redux": "4.2.1",
34-
"redux-form": "8.3.10",
35-
"redux-logger": "3.0.6",
36-
"redux-persist": "6.0.0",
37-
"redux-thunk": "2.4.2",
3834
"tweetnacl": "1.0.3",
3935
"yup": "0.32.11"
4036
},
@@ -64,12 +60,11 @@
6460
"@types/react": "17.0.56",
6561
"@types/react-dom": "17.0.19",
6662
"@types/react-router-dom": "5.3.3",
67-
"@types/redux-form": "8.3.5",
68-
"@types/redux-logger": "3.0.9",
63+
"@vitejs/plugin-basic-ssl": "1.0.1",
64+
"@vitejs/plugin-react": "3.1.0",
6965
"husky": "8.0.3",
7066
"prettier": "2.8.7",
7167
"typescript": "4.9.5",
72-
"@vitejs/plugin-react": "3.1.0",
7368
"vite": "4.2.1",
7469
"vite-plugin-checker": "0.5.6",
7570
"vite-tsconfig-paths": "4.0.8",

0 commit comments

Comments
 (0)