src/Addons/JWTAuth/JWTAuth.php
protected function requireToken($token)
    {
        if ($token) {
            return $this->setToken($token);
        } elseif ($this->token) {
            return $this;
        } else {
            throw new JWTException('A token is required', 400);
        }
    }
protected function requireToken($token)
    {
        if ($token) {
            return $this->setToken($token);
        } elseif ($this->token) {
            return $this;
        } else {
            throw new JWTException('A token is required', 400);
        }
    }
protected function requireToken ( $ token ) { if ( $ token ) { return $ this -> setToken ( $ token ) ; } elseif ( $ this -> token ) { return $ this ; } else { throw new JWTException ( 'A token is required' , 400 ) ; } }
Ensure that a token is available.

@param mixed $token

@return JWTAuth

@throws \Lia\Addons\JWTAuth\Exceptions\JWTException
Ensure that a token is available .