Ejemplo n.º 1
0
 private void OnLogin(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("Sign in with Apple login has completed.");
     statusText = "Sign in with Apple login has completed.\n USERID" + args.userInfo.userId + "/n IDTOKEN" + args.userInfo.idToken;
     userId     = args.userInfo.userId;
     idToken    = args.userInfo.idToken;
 }
 private void OnCredentialState(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("User credential state is: " + args.credentialState);
     Debug.Log("User userInfo.idToken is: " + args.userInfo.idToken);
     Debug.Log("User userInfo.userId is: " + args.userInfo.userId);
     Debug.Log("User credentialState is: " + args.credentialState);
 }
Ejemplo n.º 3
0
    private void OnCredentialState(SignInWithApple.CallbackArgs args)
    {
        Debug.Log(string.Format("User credential state is: {0}", args.credentialState));

        if (args.error != null)
        {
            Debug.Log(string.Format("Errors occurred: {0}", args.error));
        }
    }
    public void OnLogin(SignInWithApple.CallbackArgs args)
    {
        Debug.Log("Sign in with Apple login has completed.");

        UserInfo userInfo = args.userInfo;

        // Save the userId so we can use it later for other operations.
        userId = userInfo.userId;

        // Print out information about the user who logged in.
        Debug.Log(
            string.Format("Display Name: {0}\nEmail: {1}\nUser ID: {2}\nID Token: {3}", userInfo.displayName,
                          userInfo.email, userInfo.userId, userInfo.idToken));
    }
Ejemplo n.º 5
0
    private void OnLogin(SignInWithApple.CallbackArgs args)
    {
        if (args.error != null)
        {
            Debug.Log("Errors occurred: " + args.error);
            return;
        }

        UserInfo userInfo = args.userInfo;

        // Save the userId so we can use it later for other operations.
        userId    = userInfo.userId;
        text.text = userInfo.userId + " " + userInfo.idToken;
        // Print out information about the user who logged in.
        Debug.Log(
            string.Format("Display Name: {0}\nEmail: {1}\nUser ID: {2}\nID Token: {3}", userInfo.displayName ?? "",
                          userInfo.email ?? "", userInfo.userId ?? "", userInfo.idToken ?? ""));
    }
Ejemplo n.º 6
0
    public void OnLogin(SignInWithApple.CallbackArgs args)
    {
        BackendReturnObject bro = Backend.BMember.AuthorizeFederation(args.userInfo.idToken, FederationType.Apple, "siwa");

        //Debug.Log(args.userInfo.idToken); <- 애플 로그인 토큰.

        if (bro.IsSuccess())
        {
            //성공 처리
            Debug.Log("APPLE 로그인 성공");
            //Managers.Scene.LoadScene(Define.Scene.Main);
            gameObject.GetComponent <BackEndGameInfo>().InsertUserStatDataTable();     //유저 스탯 테이블 생성.
            gameObject.GetComponent <BackEndGameInfo>().InsertUserAssetDataTable();    //유저 자산 테이블 생성.
            gameObject.GetComponent <BackEndGameInfo>().InsertUnitCaptureCountTable(); //유저 유닛 포획 도감 테이블 생성.
            LoginCanvas.SetActive(false);
            TapCanvs.SetActive(true);
        }
        else
        {
            Debug.LogError("Apple 로그인 실패");
            Debug.LogError(bro.GetErrorCode());
            //실패 처리
        }
    }
 private void OnLogin(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("Sign in with Apple login has completed.");
 }
 private void OnCredentialState(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("User credential state is: " + args.credentialState);
 }
Ejemplo n.º 9
0
 private void OnCredentialState(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("User credential state is: " + args.credentialState);
     statusText = "Sign in with Apple login has completed.";
 }
 public void OnError(SignInWithApple.CallbackArgs args)
 {
     Debug.Log(string.Format("A Sign in with Apple error has occured! {0}", args.error));
 }
Ejemplo n.º 11
0
 private void Callback(SignInWithApple.CallbackArgs args)
 {
     Debug.Log("This is your id:" + args.userInfo.userId);
 }