private TimeSpan GetClaimsValidationInterval(CookieValidatePrincipalContext validationContext)
        {
            var userAreaCode = validationContext.Principal.FindFirstValue(CofoundryClaimTypes.UserAreaCode);

            if (!_userAreaDefinitionRepository.Exists(userAreaCode))
            {
                // Invalid or missing user area claim: the cookie should be invalidated immediately
                _logger.LogInformation("Invalid or missing user area claim: {userAreaCode}.", userAreaCode);
                return(TimeSpan.Zero);
            }

            var options = _userAreaDefinitionRepository.GetOptionsByCode(userAreaCode);

            return(options.Cookies.ClaimsValidationInterval);
        }