Steam Authentication Ticket

Hello. I have been trying to get the Steam Authentication Ticket using steam’s sdk. In order to do so I created a new FString variable in GameMode.h named SteamTicket and exposed it.

Steam Ticket Declaration.PNG

Then I went on to GameMode.cpp class and assigned to it the value of the ticket in the PreLogin event.

Whenever I try to read the value of my variable though, at the Begin Event in the first Level of the game, it turns up empty. I know that the configuration with steamworks is correct because i can see the steam overlay with my AppId Title name etc.

I just need a way to get steam ticket in my level blueprint.

you ever found the solution to this?

IOnlineSubsystem* OnlineSubsystem = IOnlineSubsystem::Get();
if (OnlineSubsystem)
{
	IOnlineIdentityPtr IdentityInterface = OnlineSubsystem->GetIdentityInterface();
	if (IdentityInterface.IsValid())
	{
		FString AuthToken = IdentityInterface->GetAuthToken(0);
	}
}
1 Like