public function isAuthenticated()
    {
        if (parent::isAuthenticated()) {
            if (isset($this->token['access_token'])) {
                $expired = $this->isTokenExpired();
                //We err on the side of valid vs invalid, as the API will invalidate if we are wrong, which isn't harmful
                if ($expired === false || $expired === -1) {
                    return true;
                }
            }
        }
        return false;
    }
public function isAuthenticated()
    {
        if (parent::isAuthenticated()) {
            if (isset($this->token['access_token'])) {
                $expired = $this->isTokenExpired();
                //We err on the side of valid vs invalid, as the API will invalidate if we are wrong, which isn't harmful
                if ($expired === false || $expired === -1) {
                    return true;
                }
            }
        }
        return false;
    }
public function isAuthenticated ( ) { if ( parent :: isAuthenticated ( ) ) { if ( isset ( $ this -> token [ 'access_token' ] ) ) { $ expired = $ this -> isTokenExpired ( ) ; //We err on the side of valid vs invalid, as the API will invalidate if we are wrong, which isn't harmful if ( $ expired === false || $ expired === - 1 ) { return true ; } } } return false ; }
Checks for Access Token property in token, and checks if Token is expired
@inheritdoc
Checks for Access Token property in token and checks if Token is expired