larapi-part-4 icon indicating copy to clipboard operation
larapi-part-4 copied to clipboard

Error running curl -X POST http://larapi-part-4.dev/logout -b cookies.txt -c cookies.txt

Open shinokada opened this issue 8 years ago • 1 comments

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. ...

shinokada avatar Jul 01 '17 11:07 shinokada

It's a protected route. Should append this option: -H 'Authorization: Bearer YOUR-TOKEN'

sornss avatar Jul 27 '18 12:07 sornss