- 뒤끝 SDK 버전 : 5.15.1, 뒤끝 구글 SDK 버전 : 2.2.0
- 프로젝트명 : P1
- 스테이터스 코드 :
- 에러 코드 : 10
- 에러 메시지 : Google Login Failed Result OnComplete ApiException : 10
public class UI_TitleScene : UI_Scene
{
public enum Buttons
{
Btn_LoginWithGoogle,
Btn_CustomLogin
}
protected override bool Init()
{
if (base.Init() == false)
return false;
BindButtons(typeof(Buttons));
GetButton((int)Buttons.Btn_LoginWithGoogle).onClick.AddListener(() =>
{
if (Backend.IsInitialized == false)
return;
StartGoogleLogin();
});
});
return true;
}
public void StartGoogleLogin()
{
TheBackend.ToolKit.GoogleLogin.Android.GoogleLogin(true, GoogleLoginCallback);
}
private void GoogleLoginCallback(bool isSuccess, string errorMessage, string token)
{
if (isSuccess == false)
{
Debug.LogError(errorMessage);
return;
}
Debug.Log("구글 토큰 : " + token);
var bro = Backend.BMember.AuthorizeFederation(token, FederationType.Google);
Debug.Log("페데레이션 로그인 결과 : " + bro);
}
}
뒤끝서버 구글 로그인 예제를 보며 로그인 기능을 구현했었는데 처음에는 잘되다가 나중에 다른 코드를 추가해서 테스트 하면서 안드로이드 기기 USB 연결해서 Run and Build로 테스트 했었는데 갑자기 저 코드 오류가 떴습니다. 어떻게 해결해야 할까요?? HashKey와 Web ID 알맞게 잘 넣었습니다