hensei-web/utils
Justin Edmund a98585a334 Implement setUserToken util function
This function sets axios's default headers to be included before all queries.

We need to call `setUserToken` in _app.tsx so that the defaults are set before every client-side call, and we also need to call it in every instance of `setServerSideProps`.

As a result, wherever we use `getCookies` and construct a `headers` object, we can remove it. Right now, we've only removed it on the top-level pages.
2022-12-22 21:41:38 -08:00
..
accountState.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
api.tsx Implement setUserToken util function 2022-12-22 21:41:38 -08:00
appState.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
axData.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
Element.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
emptyStates.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
enums.tsx Run prettier on src 2022-12-04 07:19:31 -08:00
jobGroups.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
pictureData.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
raidGroups.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
setUserToken.tsx Implement setUserToken util function 2022-12-22 21:41:38 -08:00
skillGroups.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
stateValues.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
timeAgo.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
useDidMountEffect.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00