Anthony Josue Medina Chinchilla

Results comments of Anthony Josue Medina Chinchilla

very late answer but this could help someone: Route::post('logout', 'AuthController@logout'); since the route is "post" you must send the token, and another string, for example with axios Axios.post("/api/me", "POSTDATA",{headers:{"AUTHORIZATION":`Bearer ${sessionStorage.jwt}`}})...

if you're getting undefined, then replace it... in my case, when my server reply without the data for any reason, maybe because there is not active session, I got that...

Too late but if someone get this error, first check that you are not using the middleware at the api routes and controller construct, then if you still getting the...