#22 - use calculateTokenRemainingLifetimeInSeconds for cookie maxAge.