-
Notifications
You must be signed in to change notification settings - Fork 0
/
TokenResponse.cs
20 lines (19 loc) · 919 Bytes
/
TokenResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Newtonsoft.Json;
namespace AuthApiDemo
{
public class TokenResponse
{
[JsonProperty("access_token", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string AccessToken { get; set; }
[JsonProperty("refresh_token", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string RefreshToken { get; set; }
[JsonProperty("token_type", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string TokenType { get; set; }
[JsonProperty("expires_in", DefaultValueHandling = DefaultValueHandling.Ignore)]
public int? ExpiresIn { get; set; }
[JsonProperty("error", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Error { get; set; }
[JsonProperty("error_description", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string ErrorDescription { get; set; }
}
}