chaynHQ / bloom-frontend

Code for the for the frontend of the Bloom service.
https://bloom.chayn.co/
MIT License
24 stars 38 forks source link

Refactor get user #970

Closed annarhughes closed 3 weeks ago

annarhughes commented 4 weeks ago

What changes did you make?

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

vercel[bot] commented 4 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bloom-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 5:22pm