Conversation: Logout
Discover how to perform user logouts in the React Native Brand Messenger SDK
Logout User
Logout User logs the user out from the BrandMessenger server and clears all locally stored data for the user from BrandMessenger.
When a user logs out from your app, you must use the following code to complete the logout process:
BrandmessengerSdk.logout((error: null | string, success: null | string) => {
if (error !== null) {
// Logout error
} else {
// Logout success
}
});
Updated 9 months ago
Did this page help you?