Feat/fi 40#84
Merged
Merged
Conversation
…pdate profile payload
…ry with silent refresh on initialization and 401 interceptor
…d store instead of LocalStorage
…shToken in localStorage
…se handling and fix navigation stuck
…handle token rotation correctly
…a in useUpdateProfile
… disable LocalStorage persistence
…401/403) instead of any network errors
… to prevent undefined values in store
…us and status fields
…ring token refresh
…field in authStore
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PHUOBG
pushed a commit
that referenced
this pull request
Jul 5, 2026
* fix:(FI-40): fix conflict * Fix Bad Request on update profile and resolve all stash pop conflicts * Fix Bad Request (400) by converting null values to empty strings in update profile payload * Sync updated profile data to authStore to prevent old data flash on reload * Fix data unwrap and authStore synchronization in use-query-auth * Refactor authentication workflow to strictly keep AccessToken in-memory with silent refresh on initialization and 401 interceptor * Fix reload logging out and navigation issues in in-memory auth workflow * Fix ProtectedRoute block by reading AccessToken from in-memory Zustand store instead of LocalStorage * Restore authentication workflow back to storing AccessToken and RefreshToken in localStorage * Refactor auth: in-memory AT, rt_token key in LS, doubly nested response handling and fix navigation stuck * Fix automatic logout by using doRefresh() in response interceptor to handle token rotation correctly * Fix dashboard fullName sync issue by properly unwrapping response data in useUpdateProfile * Commit user manual rollback changes to LocalStorage auth flow * Manage user profile strictly in-memory using Zustand and React Query, disable LocalStorage persistence * Fix reload page blanks by fetching user info on app initialization * Fix reload token loss by only logging out on explicit auth failures (401/403) instead of any network errors * Correctly unwrap res.data in updateProfile onSuccess mutation handler to prevent undefined values in store * Safeguard status mapping in LawyerProfile by checking both lawyerStatus and status fields * Optimize Axios clients to prevent auto-logouts on network failures during token refresh * Refactor authentication flow and sync lawyer location field across components * Restore direct API call for user info initialization and sync status field in authStore * Fix user roleName and status lost after /auth/me fetch in both backend and frontend * Restrict BANNED status interceptor checks to auth endpoints in axios-client.ts * Fix Admin unban refresh state and prevent Admin logout on user ban action * Fix queryClient declaration in user ban/unban mutations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.