symfony header authorization code example
Example: symfony header token authorization
$authorizationHeader = $request->headers->get('Authorization');
$authorizationHeaderArray = explode(' ', $authorizationHeader);
$token = $authorizationHeaderArray[1] ?? null;
$jwtToken = $this->JWTEncoder->decode($token);
dd($jwtToken);