Unregister app user
Unregistering an app user should be done when your app 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 app user.
You're viewing the React Native docs. Other platforms → iOS Android Flutter Web
Unregistering is done by calling the Shake.unregisterUser
method:
- Javascript
- Typescript
index.js
const logOut = (email) => {networkService.logOut(email,() => {Shake.unregisterUser();handleLogOut();},message => {// Handle failed log out});}
index.ts
const logOut = (email: string) => {networkService.logOut(email,() => {Shake.unregisterUser();handleLogOut();},(message: string) => {// Handle failed log out});}