Last active
May 9, 2020 16:14
-
-
Save arduanov/c7fd39655ba94f57c536b10f18eb2977 to your computer and use it in GitHub Desktop.
UE4 JWT Parser usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Kismet/GameplayStatics.h" | |
// ... | |
// Obtain reference to UXsollaLoginSubsystem object. It is assumed that login subsystem has been already initialized. | |
UGameInstance* GameInstance = UGameplayStatics::GetGameInstance(this); | |
UXsollaLoginSubsystem* XsollaLoginSubsystem = GameInstance->GetSubsystem<UXsollaLoginSubsystem>(); | |
// Get "email" value from token youi've received previously from launcher | |
FString email = XsollaLoginSubsystem->GetTokenParameter(token, TEXT("email")); | |
// use email value in suitable manner | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment