Problem on my front end login.

TLThiago Lordello5/17/2023
Hi guys. I have problems on my front end when i try login on my application. I put user and password but my page is not redirect. Can you help me ?
TLThiago Lordello5/17/2023
a297026f-2372-413d-8aa5-0af4cc4fe8bb
Bbrody5/17/2023
what tech stack is your frontend
TLThiago Lordello5/17/2023
My front end is app react
Bbrody5/17/2023
create react app?
TLThiago Lordello5/17/2023
No
TLThiago Lordello5/17/2023
is my app
TLThiago Lordello5/17/2023
Dellop for me
TLThiago Lordello5/17/2023
devellop
Bbrody5/17/2023
did your app use create react app
TLThiago Lordello5/17/2023
Yes
Bbrody5/17/2023
then why did you just say no lol
TLThiago Lordello5/17/2023
I had understood that you had asked if I was using a template application that the railway website provides. I got it wrong. But my application used the command 'create react app' in creation yes.
TLThiago Lordello5/17/2023
I'm Brazilian and some things I don't understand well. Sorry for the misunderstanding.
Bbrody5/17/2023
send your repo please
TLThiago Lordello5/17/2023
Okay one moment
Bbrody5/17/2023
okay and do you get any errors when you would expect to be redirected
TLThiago Lordello5/17/2023
The only thing I could see was that when I press the login button, the browser's inspection shows the status 200 confirming that the request was successful. When it is wrong, the correct error message comes from my back end. But the bad thing is that it doesn't redirect to the page that has to redirect.
Bbrody5/17/2023
show me the error from the backend
TLThiago Lordello5/17/2023
The back end not have error. The error mentioned is when i test inputing password wrong
Bbrody5/17/2023
show me the error
TLThiago Lordello5/17/2023
okay
TLThiago Lordello5/17/2023
Bbrody5/17/2023
show me the path that the request was made to
TLThiago Lordello5/17/2023
okay
TLThiago Lordello5/17/2023
I can't see the route in the console anymore. I don't know why it appeared before.
TLThiago Lordello5/17/2023
Bbrody5/17/2023
okay so you want that login request to redirect you?
TLThiago Lordello5/17/2023
Yes in my code i redirect from route /tasks
TLThiago Lordello5/17/2023
/tasks/id
Bbrody5/17/2023
what does that have to do with the login endpoint, if you want the login endpoint to redirect you, then you need to send a redirect from the login endpoint
TLThiago Lordello5/17/2023
But my code already does that.
Bbrody5/17/2023
if it did, then you would be redirected
Bbrody5/17/2023
so it obviously doesn't, or is not doing it correctly
TLThiago Lordello5/17/2023
I thought that some configuration on the platform could be preventing it.
Bbrody5/17/2023
no, this would be a code issue
TLThiago Lordello5/17/2023
Okay Brody. Will debug my code locally for identify the problem.
Bbrody5/17/2023
you jsut aren't sending a redirect response from the /login endpoint
TLThiago Lordello5/17/2023
Oh my god, Thank you. I imagine make this in my file Routs in dir router
Bbrody5/17/2023
you got it solved?
TLThiago Lordello5/17/2023
Not yet
Bbrody5/17/2023
youll get it
Bbrody5/17/2023
its just some simple code issue
TLThiago Lordello5/17/2023
Okay Brody. Thanks