public function decoded(JWTDecodedEvent $event)
    {
        $payload = $event->getPayload();

        // Make property accessor paths compatible by converting payload to recursive associative array
        $payload = json_decode(json_encode($payload), true);

        if (!$this->accessor->isReadable($payload, $this->property)) {
            $event->markAsInvalid();
        } elseif ($this->validate && $this->accessor->getValue($payload, $this->property) !== $this->getSignature()) {
            $event->markAsInvalid();
        }
    }
public function decoded(JWTDecodedEvent $event)
    {
        $payload = $event->getPayload();

        // Make property accessor paths compatible by converting payload to recursive associative array
        $payload = json_decode(json_encode($payload), true);

        if (!$this->accessor->isReadable($payload, $this->property)) {
            $event->markAsInvalid();
        } elseif ($this->validate && $this->accessor->getValue($payload, $this->property) !== $this->getSignature()) {
            $event->markAsInvalid();
        }
    }
public function decoded ( JWTDecodedEvent $ event ) { $ payload = $ event -> getPayload ( ) ; // Make property accessor paths compatible by converting payload to recursive associative array $ payload = json_decode ( json_encode ( $ payload ) , true ) ; if ( ! $ this -> accessor -> isReadable ( $ payload , $ this -> property ) ) { $ event -> markAsInvalid ( ) ; } elseif ( $ this -> validate && $ this -> accessor -> getValue ( $ payload , $ this -> property ) !== $ this -> getSignature ( ) ) { $ event -> markAsInvalid ( ) ; } }
Mark the token as invalid if the client signature is missing or is not matching

@param \Lexik\Bundle\JWTAuthenticationBundle\Event\JWTDecodedEvent $event
Mark the token as invalid if the client signature is missing or is not matching