larapi-part-4
larapi-part-4 copied to clipboard
Error running curl -X POST http://larapi-part-4.dev/logout -b cookies.txt -c cookies.txt
I get an error when I run curl -X POST http://larapi-part-4.dev/logout -b cookies.txt -c cookies.txt.
{"status":"error","code":0,"message":"Unauthenticated.","exception":"Illuminate\Auth\AuthenticationException: Unauthenticated. ...
It's a protected route. Should append this option: -H 'Authorization: Bearer YOUR-TOKEN'