code: protected function getSessionToken()
      {
          $token = null;
          if ($session = $this->app->__get('session')) {
              $token = $session->token();
          }
  
          if ($encrypter = $this->app->__get('encrypter')) {
              $token = $encrypter->encrypt($token);
          }
  
          return $token;
      }
docs: Get and encrypt token from session store.
  
  @return null|string