Open danielpeci opened 2 months ago
Seems logic to me, with the axios.post(...)
request doing nothing but console.log, no ?
But in general i guess this is more a question to ask in the lexik_jwt_authentication bundle no ? I don't see how this could be caused by symfony/ux-react .. or maybe i missed something ?
"I have also asked the question there. I thought I might find developers here who have encountered a similar case, integrating JWT Login with React / Symfony.
To clarify further, I want the user to be able to log in via a Login Form (which I have built with React). The login_check
is an API endpoint that handles authentication. If the user exists, it returns a token in response with a status code of 200. When this happens, I want to redirect the user to the dashboard. Thanks for your help tho!
I am using the Lexik Bundle to secure my API (API Platform), as well as to authenticate users via login (Symfony UX React). However, the redirection on custom authentication is not working. I receive a 200 status code and the "view" in response looks good, but nothing happens (it stays on the login page). Any ideas?
AuthenticationSuccessListener.php
security.yml
services.yml
Login.jsx
Controller (Where I want to redirect)
View