Hi, I want to allow users to login using google in my Desktop game. However, I do not know how to get the Server Auth code that LoginWithGoogleAccountRequest needs:
My code looks something like this:
using PlayFab;
using PlayFab.ClientModels;
using UnityEngine;
public class LoginManager: MonoBehaviour
{
string GetServerAuthCode() {
}
void LoginUsingGoogle() {
var request = new LoginWithGoogleAccountRequest { CreateAccount = true, ServerAuthCode = GetServerAuthCode()};
PlayFabClientAPI.LoginWithGoogleAccount(request, OnLoginUsingThirdPartySuccess, OnLoginUsingThirdPartyFailure);
}
}
I want to write the appropriate code under GetServerAuthCode
.