add basic auth to api symfony authorization header 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);