Unbind (解绑)
It is not recommended to directly unbind login channels in the game client.To prevent players from transferring accounts through unbinding or re-binding, we suggest handling re-binding through customer service.
Unbind the login channel for the Player Network account.Once the channel unbinding is successful, you will not be able to log into the same Player Network account via the unbound channel.Next time you use this unbound channel to log in, a new Player Network SDK OpenID will be generated.Please note that the current login channel cannot be unbound.LI PASS does not support unbinding.
The currently logged in channel cannot be unbound.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool Unbind(
const EINTLLoginChannel Channel,
const FString Uid = "",
const FString ExtraJson = "{}");
Parameter Explanation
| Name | Type | Explanation |
|---|---|---|
| Channel | FString | For the channels to be unbound, refer to EINTLLoginChannel. |
| Uid | FString | Account ID for unbinding channel (optional) |
| ExtraJson | FString | Optional, extended field |
Callback Handling
The callback handling interface is AuthBaseResultObserver.
The callback data structure is BaseResult.
The callback ID is kMethodIDAuthUnbind.
Code Example
UINTLSDKAPI::Unbind(EINTLLoginChannel::kChannelFacebook); // Unbind Facebook channel