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