code: private void tryRefreshAccessToken(final Long reqStartedAt) {
      authLock.writeLock().lock();
      try {
        if (!isLoggedIn()) {
          throw new StitchClientException(StitchClientErrorCode.LOGGED_OUT_DURING_REQUEST);
        }
  
        try {
          final Jwt jwt = Jwt.fromEncoded(getAuthInfo().getAccessToken());
          if (jwt.getIssuedAt() >= reqStartedAt) {
            return;
          }
        } catch (final IOException e) {
          // Swallow
        }
  
        // retry
        refreshAccessToken();
      } finally {
        authLock.writeLock().unlock();
      }
    }
docs: prevent too many refreshes happening one after the other.