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