vendor/lexik/jwt-authentication-bundle/Security/Authenticator/Token/JWTPostAuthenticationToken.php line 8

Open in your IDE?
  1. <?php
  2. namespace Lexik\Bundle\JWTAuthenticationBundle\Security\Authenticator\Token;
  3. use Symfony\Component\Security\Core\User\UserInterface;
  4. use Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken;
  5. class JWTPostAuthenticationToken extends PostAuthenticationToken
  6. {
  7. private $token;
  8. public function __construct(UserInterface $user, string $firewallName, array $roles, string $token)
  9. {
  10. parent::__construct($user, $firewallName, $roles);
  11. $this->token = $token;
  12. }
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function getCredentials(): string
  17. {
  18. return $this->token;
  19. }
  20. }