CleverTap / clevertap-flutter

CleverTap Flutter SDK
Other
30 stars 42 forks source link

Handling User Identity Reset and Event Recording Post-Logout #226

Open mueksh-b opened 3 months ago

mueksh-b commented 3 months ago

I would like to seek some guidance on a specific use case that involves user identity management. Our application requires the ability to reset the user identity upon logout and continue recording events under an anonymous profile until the user either logs back in or creates a new account. Here’s the scenario we are looking to support:

  1. User Logout:When a user logs out of their account, we should reset their identity so that new events are not recorded under the logged-out account.
  2. Anonymous Event Recording: Post-logout, any events triggered should be recorded under an anonymous profile.
  3. Re-Identification: Upon login or account creation, we want to re-identify the user and merge the events recorded anonymously with their new profile.