Пример #1
0
        public void GoogleGameSteps(string Token, string way)
        {
            GooglePlayGetBack obj = JsonAuthorizeData <GooglePlayGetBack> .FromJson(Token.ToString());

            AGConnectAuthCredential credential =
                GoogleGameAuthProvider.credentialWithToken(obj.Token);

            thirdPartySignIn(way, credential);
        }
Пример #2
0
            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);
            }