ChangeCustomToFederation
public BackendReturnObject ChangeCustomToFederation(string federationToken, FederationType type);
Parameters
| Value | Type | Description |
|---|---|---|
| federationToken | string | Federation token |
| type | FederationType(enum) | Federation type.FederationType.GoogleFederationType.FacebookFederationType.AppleFederationType.SteamFederationType.GPGS2 |
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.ChangeCustomToFederation, "federationToken" , FederationType.Google, callback =>
{
// Process after federation authentication
});
ReturnCase
Success cases
When the switching is successful
statusCode : 204
message : Success