Sleekplan Logo
we run on Sleekplan

User Segment Update Requires Logout/Login to Reflect Changes

**Expected Behavior** When a user's meta-data is updated via the backend or API, the segment should be updated immediately on both the Sleekplan admin dashboard and the frontend, allowing the user to see any associated updates (such as new categories assigned to the segment) without needing to log out and log in again. **Current Behavior** When a user's meta-data is updated via the backend or API, the segment is updated only on the Sleekplan admin dashboard. On the frontend, the user can only see the changes (e.g., new categories assigned to their segment) after logging out and logging in again. However, updating the user's meta-data through the SSO token payload works correctly, reflecting changes immediately on both the admin dashboard and the frontend. **Possible Solution** Ensure that updating a user's meta-data via the backend or API triggers the same real-time update mechanism as updating through the SSO token payload, so that the changes are reflected immediately on the frontend without requiring the user to log out and log in again. **Steps to Reproduce** 1. Update a user's meta-data via the backend or API. 2. Verify that the user is matching a new segment. 3. Associate the segment with a specific category or another feature that should be visible only to users in that segment. 5. Reload the page as the logged-in user on the frontend. 6. Observe that the changes (e.g., new category assigned to the segment) are not visible to the user. 7. Log out and log in again as the user. 8. Observe that the changes are now visible.