-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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: change login/auto_login to use UseQuery #3033
Conversation
…ontend 🔧 (App.tsx): Update import path for useAutoLogin function in controllers/API/queries/auth 🔧 (index.ts): Remove autoLogin function from API controllers as it is now handled by useAutoLogin hook 🔧 (use-get-autologin.ts): Update function name to useAutoLogin and adjust return type 🔧 (use-post-login-user.ts): Update function name to loginUserFn for clarity 🔧 (LoginPage/index.tsx): Update import path for useLoginUser function in controllers/API/queries/auth 🔧 (LoginPage/index.tsx): Update function name to loginUserFn for clarity 🔧 (authStore.ts): Remove unused imports and functions related to autoLogin and login operations
…m onSuccess callback in mutate function
…ion' to clean up code and improve readability
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 29 Jul 24 16:38 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…dling in the authentication process 📝 (authGuard/index.tsx): Import constant for auto login option and update logic to check for token before logging out 🔧 (constants.ts): Remove unused import to improve code cleanliness 🔧 (authContext.tsx): Refactor login and logout functions to use state setters directly for better code readability and maintainability
…er used 🔧 (use-get-profile-pictures.ts): Remove unused code related to fetching profile pictures 🔧 (use-preload-images.tsx): Refactor usePreloadImages hook to accept profilePictures as an argument 🔧 (profilePictureChooserComponent/index.tsx): Update usage of usePreloadImages hook to match new signature 🔧 (ProfilePictureForm/index.tsx): Refactor to use useGetProfilePicturesQuery hook instead of handleGetProfilePictures function
✨ (App.tsx): Introduce framer-motion library for animations in the frontend
🔧 (App.tsx): Update import path for useAutoLogin function in controllers/API/queries/auth
🔧 (index.ts): Remove autoLogin function from API controllers as it is now handled by useAutoLogin hook
🔧 (use-get-autologin.ts): Update function name to useAutoLogin and adjust return type
🔧 (use-post-login-user.ts): Update function name to loginUserFn for clarity
🔧 (LoginPage/index.tsx): Update import path for useLoginUser function in controllers/API/queries/auth
🔧 (LoginPage/index.tsx): Update function name to loginUserFn for clarity
🔧 (authStore.ts): Remove unused imports and functions related to autoLogin and login operations