ed-roh/mern-social-media

Not able to redirect to homepage after login

Closed this issue · 1 comments

I am not able to redirect to the homepage after I log in. The same login page is opened and I cannot even get to the homepage after registering a new account. Home page never opens what should I do??

::1 - - [09/Aug/2023:12:58:21 +0000] login HTTP/1.1" 204 0
::1 - - [09/Aug/2023:12:58:22 +0000] in HTTP/1.1" 400 31
::1 - - [09/Aug/2023:12:58:26 +0000] in HTTP/1.1" 400 31

This is the output I get on terminal after clicking login.....

::1 - - [09/Aug/2023:13:53:02 +0000] "OPTIONS /auth/login HTTP/1.1" 204 0
::1 - - [09/Aug/2023:13:53:02 +0000] "POST /auth/login HTTP/1.1" 400 31
::1 - - [09/Aug/2023:13:53:05 +0000] "POST /auth/login HTTP/1.1" 400 31