Home > Software engineering >  JWT Authentification invalid Credentials with the token
JWT Authentification invalid Credentials with the token

Time:09-14

I am new to Symfony and jwt Authentication.

I tried to set up an access to api platform resources with a jwt token.

I followed the doc enter image description here

Token info: enter image description here Request get/Users: enter image description here Security.yaml enter image description here

Thanks in advance for your help

CodePudding user response:

I found the problem

To connect I use the email field, while LexitJWT uses the username. I don't know why it doesn't block me from generating the token. To fix the problem just go to the config/packages/lexik_jwt_authentication.yaml file and add user_identity_field: email

enter image description here

  • Related