private void CheckForRefresh(AuthenticationTicket token) { var currentUtc = Clock.UtcNow; var expiresUtc = token.Properties.ExpiresUtc; var allowRefresh = token.Properties.AllowRefresh ?? true; if (!allowRefresh) { return; } if (expiresUtc < currentUtc) { //_service.RefreshToken(ref token); StoreCookieToken(token.RetrieveToken()); } }