protected function requireToken() { if (!$this->getToken()) { throw new BadRequestHttpException('Token could not be parsed from the request.'); } return $this->jwt; }