Skip to content

Feat/fi 40#84

Merged
NHSon05 merged 27 commits into
devfrom
feat/FI-40
Jul 2, 2026
Merged

Feat/fi 40#84
NHSon05 merged 27 commits into
devfrom
feat/FI-40

Conversation

@NHSon05

@NHSon05 NHSon05 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

NHSon05 added 27 commits June 29, 2026 23:14
…ry with silent refresh on initialization and 401 interceptor
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fairinsight Ready Ready Preview, Comment Jul 2, 2026 6:50pm

@NHSon05 NHSon05 merged commit 5dd93bf into dev Jul 2, 2026
4 checks passed
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
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