public void logoutUser(final UserIdentity userIdentity) {
        LOGGER.debug("Logging out user {}", userIdentity);
        if (userIdentity instanceof final HasRefreshable hasRefreshable) {
            removeTokenFromRefreshManager(hasRefreshable.getRefreshable());
        }
    }
Call this when a user logs out (or is logged out) to stop refreshing tokens for that user.
stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/StroomUserIdentityFactory.java