protected function checkMethodForLoginRequired($method)
    {
        $isLoggedIn = $this->provider->isLoggedIn();
        $methodRequiresLogin = $this->provider->checkMethodRequiresLogin($method);

        if ($methodRequiresLogin && !$isLoggedIn) {
            $errorMessage = $this->getErrorMethodCallMessage($method, 'You must log in before.');
            throw new AuthRequired($errorMessage);
        }
    }