Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony header token authorization

$authorizationHeader = $request->headers->get('Authorization');
        $authorizationHeaderArray = explode(' ', $authorizationHeader);
        $token = $authorizationHeaderArray[1] ?? null;
        $jwtToken = $this->JWTEncoder->decode($token);
        dd($jwtToken);
 
PREVIOUS NEXT
Tagged: #symfony #header #token #authorization
ADD COMMENT
Topic
Name
2+4 =