Logging Out

User can be logged out by disconnecting the user. After disconnection, call connect user for logging in with another user.

Client->DisconnectUser();

const FString Token{TEXT("{{ api_key }}")};
const FUser OtherUser{TEXT("tommaso")};
Client->ConnectUser(
  OtherUser,
  Token,
  [](const FOwnUser& UserRef)
  {
    // New connection established
  });

Disable Push Notifications

Additionally, you’ll want to stop the user from receiving further push notifications by unregistering their device.

© Getstream.io, Inc. All Rights Reserved.