(36条消息) jwt
token解密使用authenticate方法,注意要先setToken:
use Tymon\JWTAuth\JWTAuth;
class VerifySign extends JWTAuth
{
public function getUserInfo($token)
{
$this->setToken($token);
$user = $this->authenticate();
reutrn $user;
}
}
赞 (0)