### Sign in a local player using C++ Source: https://docs.redpoint.games/eos-online-subsystem Demonstrates retrieving the platform handle and identity system to perform a player login. Requires a valid world context and appropriate namespace usage. ```cpp using namespace ::Redpoint::EOS::Core::Utils; using namespace ::Redpoint::EOS::Identity; // Get the handle to the Epic Online Services platform. auto PlatformHandle = FWorldResolution::GetPlatformHandle( this->GetWorld()); // Get the identity system. auto Identity = PlatformHandle->GetSystem(); // Sign the local player in. Identity->Login( FLoginRequest(0 /* User slot a.k.a. controller index. */) IIdentitySystem::FOnLoginComplete::CreateSPLambda( this, [this](FError ErrorCode, FIdentityUserPtr NewUser) { if (ErrorCode.WasSuccessful()) { // The user is signed in, and NewUser is valid. } })); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.