예제 #1
0
 public AccessToken(Model.WindowsLiveResponse response)
 {
     Issued  = response.CreationTime;
     Expires = response.CreationTime + TimeSpan.FromSeconds(response.ExpiresIn);
     Jwt     = response.AccessToken;
 }
예제 #2
0
 public RefreshToken(Model.WindowsLiveResponse response)
 {
     Issued  = response.CreationTime;
     Expires = response.CreationTime + TimeSpan.FromDays(14);
     Jwt     = response.RefreshToken;
 }