public void GoogleGameSteps(string Token, string way) { GooglePlayGetBack obj = JsonAuthorizeData <GooglePlayGetBack> .FromJson(Token.ToString()); AGConnectAuthCredential credential = GoogleGameAuthProvider.credentialWithToken(obj.Token); thirdPartySignIn(way, credential); }
public void OnSuccess(Java.Lang.Object signInAccount) { GoogleSignInAccount googleSignInAccount = (GoogleSignInAccount)signInAccount; string authCode = googleSignInAccount.ServerAuthCode; Log.Debug("GooglePlaySignInListener", "Successfuly. Auth code: " + authCode); IAGConnectAuthCredential credential = GoogleGameAuthProvider.CredentialWithToken(authCode); loginActivity.SignIn(credential); }