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

feat: fetch user details #16

Merged
merged 2 commits into from
Jan 15, 2023
Merged

feat: fetch user details #16

merged 2 commits into from
Jan 15, 2023

Conversation

Saba-Var
Copy link
Owner

No description provided.

@Saba-Var Saba-Var added the security Fix security issue label Jan 15, 2023
@Saba-Var Saba-Var merged commit 0bd0484 into main Jan 15, 2023
@what-the-diff
Copy link

what-the-diff bot commented Jan 15, 2023

  • Added userId cookie
  • Changed useSidebarLayout hook to check if the user is logged in and redirects them to overview page if not
  • Updated hooks/index file with new exports from all files inside it (useUserService)
  • Updated useAccountActivation hook so that when a 403 error occurs, we try refreshing token instead of alerting an error message
  • Updated useAxiosPrivate hook so that when a 403 error occurs, we try refreshing token instead of alerting an error message
  • Removed unnecessary imports from authService file and added LoginResponseData type for login response data object returned by backend API on successful authentication request

@Saba-Var Saba-Var deleted the feat/fetch_user_details branch January 15, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Fix security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant