Hey,
I'm busy trying to login with PlayFab through Kongregate and am getting the following error:
PlayFabError(InvalidKongregateToken, InvalidKongregateToken, 400 BadRequest)
I'd be grateful for any helping in finding out what's wrong with the kong token I'm submitting.
I've tried the following:
fcea8d8b-ba12-3456-b9e2-a12345678d03
"fcea8d8b-ba12-3456-b9e2-a12345678d03"
and
"{fcea8d8b-ba12-3456-b9e2-a12345678d03}"
I think the token itself should be fine, and I'm using the following method to attempt the login:
public void LoginWithKongregate(string kongregateId, string authTicket){ Debug.Log("LoginWithKongregate: " + kongregateId + ", " + authTicket); LoginWithKongregateRequest request = new LoginWithKongregateRequest(){ TitleId = PlayFabTitleID, KongregateId = kongregateId, AuthTicket = authTicket, CreateAccount = true }; PlayFabClientAPI.LoginWithKongregate( request, (result) => { PlayFabId = result.PlayFabId; Debug.Log("Got PlayFabID: " + PlayFabId); if(result.NewlyCreated) { Debug.Log("(new account)"); } else { Debug.Log("(existing account)"); } loginStatus = EPLayfabLogInStatus.LoggedIn; }, (error) => { Debug.Log("Error logging in player with kongregate ID, token is:" + authTicket + ", kongid is: " +kongregateId); Debug.LogError(error); loginStatus = EPLayfabLogInStatus.Error; } ); }
Thanks in advance for any help!
-Tristan