Add onUnauthorized callback for the queue size timer.