Skip to main content

Unbind

AndroidiOSWindows
If you were looking for the method for use with Unity, see Unbind for Unity SDK.
caution

It is not recommended to directly unlink login channels on the game client. To prevent players from transferring accounts by unlinking or relinking, it is recommended to relink accounts through customer service.

Unlink a login channel from a Player Network account. After successful unlinking, users will no longer be able to log in to the Player Network account via the unlinked channel. The next time users log in using the unlinked channel, a new Player Network SDK OpenID will be generated. Unlinking is restricted on LI PASS.

note

The current login channel cannot be unlinked.

Function definition

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

Input parameters

NameTypeDescription
ChannelFStringChannel to be unlinked. For more information, see EINTLLoginChannel.
UidFStringAccount ID of the unlinked channel (optional)
ExtraJsonFStringExtended field (optional)

Observers

The callback processing API is AuthBaseResultObserver.
The callback data structure is BaseResult.

The callback methodID is kMethodIDAuthUnbind.

Code sample

UINTLSDKAPI::Unbind(EINTLLoginChannel::kChannelFacebook); //Unlink the Facebook channel