React x Symfony x JWT: The key "email" must be a string, "NULL" given #54845
Unanswered
danielpeci
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am building an App with Symfony 6.4, with API Platform, Lexik JWT Bundle, and in the Frontend React & Vite.
I've successfully secured my API with JWT, which works perfectly and now I am aiming to implement a user login that redirects to the dashboard.
However, I'm facing an issue: "The key 'email' must be a string, 'NULL' given." I've found a similar thread, but no solution was provided. Any ideas? Did I configured something wrong? Or is there a better way, to implement login with react and jwt bundle? Thanks for the help
security.yml
lexik_jwt_authentication.yml
Login.jsx
The interesting part is, that on the request email and password are not empty at all
Beta Was this translation helpful? Give feedback.
All reactions