Refactored user auth functionality to use GET instead of POST endpoint. Removed duplication of auth functionality across LoginForm, RegisterForm and AuthGuard, using a new useLoadUser hook thats available on every page. This simplified the auth guards and removed guards/publicPageDataWrapper.tsx
Why did you make the changes?
Following updates in backend PR to use GET instead of POST request
What changes did you make?
Refactored user auth functionality to use GET instead of POST endpoint. Removed duplication of auth functionality across
LoginForm
,RegisterForm
andAuthGuard
, using a newuseLoadUser
hook thats available on every page. This simplified the auth guards and removed guards/publicPageDataWrapper.tsxWhy did you make the changes?
Following updates in backend PR to use GET instead of POST request