hapi-auth-jsonwebtoken
hapi-auth-jsonwebtoken copied to clipboard
Problems with headers
I cannot get hapi-auth-webtoken to verify my tokens, it rejects the header format
{
"statusCode": 400,
"error": "Bad Request",
"message": "Bad HTTP authentication header format"
}
My client generates this:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Authorization:Bearer jwtsecret <--- FROM THE CLIENT REQUEST
Cache-Control:no-cache
Connection:keep-alive
Host:localhost:3000
Origin:http://localhost:8000
Pragma:no-cache
Referer:http://localhost:8000/
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36
Query String Parametersview sourceview URL encoded
What exactly does the format that hapi-auth-webtoken needs look like? Thanks
did u get the solution ? I am also facing the same error.