diff --git a/MinecraftClient/Protocol/ProtocolHandler.cs b/MinecraftClient/Protocol/ProtocolHandler.cs index 77abf9d5..ea095ae0 100644 --- a/MinecraftClient/Protocol/ProtocolHandler.cs +++ b/MinecraftClient/Protocol/ProtocolHandler.cs @@ -221,14 +221,15 @@ namespace MinecraftClient.Protocol /// Validates whether accessToken must be refreshed /// /// Will contain the cached access token previously returned by Minecraft.net + /// Will contain the cached client token created on login /// Returns the status of the token (Valid, Invalid, etc.) /// - public static ValidationResult GetTokenValidation(string accesstoken) + public static ValidationResult GetTokenValidation(string accesstoken, string clienttoken) { try { string result = ""; - string json_request = "{\"accessToken\": \"" + jsonEncode(accesstoken) + "\" }"; + string json_request = "{\"accessToken\": \"" + jsonEncode(accesstoken) + "\", \"clientToken\": \"" + jsonEncode(clienttoken) + "\" }"; int code = doHTTPSPost("authserver.mojang.com", "/validate", json_request, ref result); if (code == 204) {