I am using Thunder Client for testing jwt token
After login, Token generated successfully,
Headers- Authorization- generated token
I got error message
{
"message": "Invalid token"
}
But
Auth- Bearer- Bearer Token- generated token
I got successfully message
{
"message": "I am a private route"
}
So what is the problem with the Authorization vs Bearer token?
Because you are using bearer
token when using that we have to set the Bearer
keyword in Authorization
header like below
That what automatically set's while using Auth->Bearer->Token