auth0-blog / hapi-jwt-authentication

MIT License
42 stars 14 forks source link

Bad HTTP authentication header format #7

Open Dhaval8087 opened 8 years ago

Dhaval8087 commented 8 years ago

I have used your repo and when I tried to access the API http://localhost:3000/api/users with Header Authorization it will throw the error like { "statusCode": 400, "error": "Bad Request", "message": "Bad HTTP authentication header format" }

chenkie commented 8 years ago

What are you sending with your Authorization header? It should contain Bearer <token> where <token> is JWT.

lobo commented 7 years ago

@Dhaval8087 any updates to Ryan's question? Otherwise we'll close this issue :)

Dhaval8087 commented 7 years ago

Ya that was my bad i was forgot to add bearer , close it