JWT Authentication API responded {"error":"Unauthenticated"}
-
I called
POST http(s)://example.com/api/customer/login?token=true
THen I tried to call API, I got {"error":"Unauthenticated"}
GET <host>/api/customer/get
What did I miss?
Thanks!
-
Just add
?token=true
in each request. -
@devansh-webkul said in JWT Authentication API responded {"error":"Unauthenticated"}:
?token=true
YES! Thank you! It works now.
But before it can work, I need to do this first:php artisan key:generate php artisan jwt:secret php artisan cache:clear php artisan config:clear