Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor get user #970

Merged
merged 6 commits into from
Jun 13, 2024
Merged

Refactor get user #970

merged 6 commits into from
Jun 13, 2024

Conversation

annarhughes
Copy link
Member

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

Copy link

vercel bot commented Jun 12, 2024

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

@annarhughes annarhughes merged commit 1791cd3 into develop Jun 13, 2024
7 checks passed
@annarhughes annarhughes deleted the refactor-get-user branch June 13, 2024 09:35
@cypress cypress bot mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant