I'm always receiving "Unauthenticated error" when using Passport in my current project. That's what I did the lasts 3 days:
- Install and configure Passport (as docs says)
- Request a token (password grant token) with Postman
- Request a protected route (auth:api middleware) with the token
- Get `{ "error": "Unauthenticated." }`
- Search and search and research
- Get `{ "error": "Unauthenticated." }`
Then, I've installed a fresh L5.3 and a fresh DB and works fine. Even with my current DB!
I've tried all the solutions that I found without success ...
Can anyone help me? Any idea would be appreciated.
Thanks.