Unbind
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
Name | Type | Description |
---|---|---|
Channel | FString | Channel to be unlinked. For more information, see EINTLLoginChannel. |
Uid | FString | Account ID of the unlinked channel (optional) |
ExtraJson | FString | Extended 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