restoreAccessToken() protected method

Restore access token from the session.
protected restoreAccessToken ( ) : boolean
return boolean whether the access token was successfuly restored.
 /**
  * Restore access token from the session.
  * @return boolean whether the access token was successfuly restored.
  */
 protected function restoreAccessToken()
 {
     if ($this->hasState('uid') && parent::restoreAccessToken()) {
         $this->uid = $this->getState('uid');
         return true;
     } else {
         $this->uid = null;
         return false;
     }
 }