Improve the frontend modals
This commit is contained in:
@@ -152,6 +152,14 @@ export const useAuthStore = create<AuthState>()(
|
||||
apiClient.setRefreshToken(null);
|
||||
apiClient.setTenantId(null);
|
||||
|
||||
// Clear tenant store to remove cached tenant data
|
||||
// Import dynamically to avoid circular dependencies
|
||||
import('./tenant.store').then(({ useTenantStore }) => {
|
||||
useTenantStore.getState().clearTenants();
|
||||
}).catch(err => {
|
||||
console.warn('Failed to clear tenant store on logout:', err);
|
||||
});
|
||||
|
||||
set({
|
||||
user: null,
|
||||
token: null,
|
||||
|
||||
Reference in New Issue
Block a user