using System; using Newtonsoft.Json; using UnityEngine.Scripting; namespace Unity.Services.Authentication.Editor.Models { /// /// The model for error response from authentication server. /// /// /// There is another field "details" in the error response. It provides additional details /// to the error. It's ignored in this deserialized class since it's not needed by the client SDK. /// [Serializable] class TokenExchangeErrorResponse { [Preserve] public TokenExchangeErrorResponse() {} [JsonProperty("name")] public string Name; [JsonProperty("message")] public string Message; [JsonProperty("status")] public int Status; } }