isDeviceSecretBeingConfirmed is changing to also check if a non-empty queue is finished.
tokenConfirmRequestPending and tokenRefreshRequestPending check to see what stage of the refresh process we are in.