function getRateLimiter()
    {
        if ($this->rateLimiter) {
            return $this->rateLimiter;
        }

        $app = $this->auth->getApp();
        $class = $app['config']->get('auth.loginRateLimiter', NullRateLimiter::class);

        $this->rateLimiter = new $class();
        if (method_exists($this->rateLimiter, 'setApp')) {
            $this->rateLimiter->setApp($app);
        }

        return $this->rateLimiter;
    }