我在codeigniter PHP中使用jwt令牌,每当尝试创建jwt令牌时,都会出现以下错误:
未找到“ AUTHORIZATION”类
这是我的代码:
public function hello_get()
{
$tokenData = 'Hello World!';
// Create a token
$token = AUTHORIZATION::generateToken($tokenData);
// Set HTTP status code
$status = parent::HTTP_OK;
// Prepare the response
$response = ['status' => $status,'token' => $token];
// REST_Controller provide this method to send responses
$this->response($response,$status);
}
我要去哪里错了?