logout
For security reasons, it is always advisable to explicitly logout a user. The OneWelcome React Native SDK exposes the following function to do so. See Logging out for more information.
logout(): Promise<void>
Example
OneWelcomeSdk.logout()
  .then(() => {
    console.log('Logout succeed!')
  })
  .catch(error => {
    console.log('Logout failed!: ', error.message)
  })