src/EventListener/JwtAuthenticationSuccessListener.php line 10
<?phpnamespace App\EventListener;use App\Entity\User;use Lexik\Bundle\JWTAuthenticationBundle\Event\AuthenticationSuccessEvent;class JwtAuthenticationSuccessListener{public function onAuthenticationSuccessResponse(AuthenticationSuccessEvent $event): void{$data = $event->getData();$user = $event->getUser();if (!$user instanceof User) {return;}$data['uuid'] = $user->getUuid();$event->setData($data);}}