Skip to content

Instantly share code, notes, and snippets.

@VulBusters
Last active May 11, 2023 10:06
Show Gist options
  • Save VulBusters/f54a7372bc79befc0aed8b4f1cf4e6d7 to your computer and use it in GitHub Desktop.
Save VulBusters/f54a7372bc79befc0aed8b4f1cf4e6d7 to your computer and use it in GitHub Desktop.
public class LoginWithEmailNormal
{
public void LoginWithEmail()
{
var loginReq = new LoginWithEmailAddressRequest
{
Email = EmailField.text,
Password = PasswordField.text
};
PlayFabClientAPI.LoginWithEmailAddress(loginReq, OnSuccess, OnError);
}
void OnSuccess(LoginResult result)
{
String s = String.Format("Entity token: {0}", result.EntityToken.EntityToken);
Debug.Log(s);
}
void OnError(PlayFabError error)
{
String s = String.Format("Error message: {0}", error.ErrorMessage);
Debug.Log(s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment