I am using JWT ( https://github.com/tymondesigns/jwt-auth ) to create session tokens in my API.
I made all the appropriate settings to work as author documentation.
After connecting the session, I use the URL to return the data of my categories. When I pass the token directly in the url, it works. As below:
http:
Only I need to pass the token in my request in the header using an authentication identifier. But does not work. See how I'm worried:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9kZXYuaW1pYXZpcFwvYXBpXC9hdXRoXC9hdXRoZW50aWNhdGUiLCJzdWIiOiIxIiwiaWF0IjoxNDIxODQyMzU4LCJleHAiOjE0MjE5Mjg3NTh9.-nqKoARKc2t1bI2j5KFEP_zRU8KCki_dghKe6dtAedY
What could be wrong?
The JWT documentation mentions the use of the form I spent above. But does not work.
source share