Skip to content

Instantly share code, notes, and snippets.

@arduanov
Last active May 9, 2020 16:14
Show Gist options
  • Save arduanov/c7fd39655ba94f57c536b10f18eb2977 to your computer and use it in GitHub Desktop.
Save arduanov/c7fd39655ba94f57c536b10f18eb2977 to your computer and use it in GitHub Desktop.
UE4 JWT Parser usage
#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