Skip to main content
Version: 5.11.8

ChangeCustomToFederation

public BackendReturnObject ChangeCustomToFederation(string federationToken, FederationType type);

Parameters

ValueTypeDescription
federationTokenstringFederation token
typeFederation type(enum)The federation's type.FederationType.Google, FederationType.Facebook, or FederationType.Apple

Description

Switches the account logged in as a custom account to an account that uses Google/Apple/Facebook's member information.
After logging in, you must use federation login for subsequent logins because the custom account you used previously can no longer be used to log in.

Example

Synchronous

Backend.MultiCharacter.Account.ChangeCustomToFederation("federationToken" , FederationType.Google);

Asynchronous

Backend.MultiCharacter.Account.ChangeCustomToFederation("federationToken" , FederationType.Google, callback =>
{
// Process after federation authentication
});

SendQueue

SendQueue.Enqueue(Backend.MultiCharacter.Account.AuthorizeFederation, "federationToken" , FederationType.Google, "Signed up with GPGS", callback =>
{
// Process after federation authentication
});

ReturnCase

Success cases

When the switching is successful
statusCode : 204