📜  symnfony 不记名令牌 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.886000             🧑  作者: Mango

代码示例2
$authorizationHeader = $request->headers->get('Authorization');
        $authorizationHeaderArray = explode(' ', $authorizationHeader);
        $token = $authorizationHeaderArray[1] ?? null;
        $jwtToken = $this->JWTEncoder->decode($token);
        dd($jwtToken);