feat: update primaryRole handling in authStore and adjust context role for clinics

This commit is contained in:
hamed
2026-06-13 18:47:26 +03:30
parent d05c070661
commit 09c393a574
6 changed files with 186 additions and 9 deletions
+4 -3
View File
@@ -109,9 +109,10 @@ export const useAuthStore = create<AuthState>()(
});
if (res.success) {
set({
dbUuid: res.data.db_uuid,
dbKey: res.data.db_key,
context: res.data.context,
dbUuid: res.data.db_uuid,
dbKey: res.data.db_key,
context: res.data.context,
primaryRole: res.data.context?.role ?? null,
});
}
},