Skip to main content

Login (Login)

AndroidiOSWindows
If you're using the Unity engine, see the Login for Unity SDK.

Log in to the game through the specified channel.This function returns authentication status and Player Network account information.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool Login(
const EINTLLoginChannel Channel,
const FString Permissions = "",
const FString ExtraJson = "{}");

Input Parameters

ParametersTypeExplanation
ChannelFStringSpecify the login channel.
For more information, see EINTLLoginChannel.
PermissionsFStringLogin authorization permission list, multiple permissions are separated by commas.
For example user_info,inapp_friends
See the explanation of each channel for specific meanings.
ExtraJsonFStringExtended fields
For more information, seethe relative channel descriptions.

Callback processing

The callback handler interface is AuthResultObserver.The callback data structure is AuthResult.

The callback ID is kMethodIDAuthLogin.

Code example

// login to Steam
UINTLSDKAPI::Login(EINTLLoginChannel::kChannelSteam);