public function isAuthenticated()
    {
        try {
            $session = $this->sessionStorage->retrieveAccessToken($this->getServiceName());
            if (!$session) {
                return false;
            }
            return $session->getEndOfLife() > time();
        } catch (TokenNotFoundException $e) {
            return false;
        }
    }
public function isAuthenticated()
    {
        try {
            $session = $this->sessionStorage->retrieveAccessToken($this->getServiceName());
            if (!$session) {
                return false;
            }
            return $session->getEndOfLife() > time();
        } catch (TokenNotFoundException $e) {
            return false;
        }
    }
public function isAuthenticated ( ) { try { $ session = $ this -> sessionStorage -> retrieveAccessToken ( $ this -> getServiceName ( ) ) ; if ( ! $ session ) { return false ; } return $ session -> getEndOfLife ( ) > time ( ) ; } catch ( TokenNotFoundException $ e ) { return false ; } }
Obtains authentication for current service

@return bool
Obtains authentication for current service