Skip to main content

Unregister app user

Unregistering an app user should be done when your app user decides to log out and perhaps use your application as a guest, or when you no longer want the subsequent reports to be associated with the current app user.

Unregistering is done by calling the Shake.unregisterUser method:

main.dart
void logOut() {
networkService.performLogOut(email,
() {
Shake.unregisterUser();
handleLogOut();
},
(String message) {
// Handle failed log out
});
}