Skip to main content

Unregister user

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

Unregistering is done by calling the Shake.unregisterUser method:

UserManager.swift
func logOut {
self.networkService.performLogOut(email: email) { [weak self] logOutResponse in
if logOutResponse {
self?.performLogOutCleanup();
Shake.unregisterUser();
return;
}
}
}