I found this error when I launch unit test in project symfony
Lexik\Bundle\JWTAuthenticationBundle\Exception\JWTEncodeFailureException: Unable to create a signed JWT from the given configuration.
application is working but in unit test I found this error, two keys public and private exist in config/jwt folder
.env.test:
KERNEL_CLASS='App\Kernel'
.env:
APP_SECRET=hello
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=hellohello
###< lexik/jwt-authentication-bundle ###
and when i add configurations lexikjwtauthentification in .env.test ,also error
Example from a exists project configuration: