This should fix a minor anoyance I was having while debugging an Unauthorized error and it turns out I made a simple stupid mistake when passing a header.
If by any chance we pass in an upper case header Authorization on the request object this check won't find the JWT.
I admit it may be a bit overkill to convert all headers but it should fix an issue I had while using the package.
Don't know if it should be a specific ES version, hope this is ok and it helps anyone else if they encounter a similar issue 😄
This should fix a minor anoyance I was having while debugging an
Unauthorized
error and it turns out I made a simple stupid mistake when passing a header. If by any chance we pass in an upper case headerAuthorization
on the request object this check won't find the JWT. I admit it may be a bit overkill to convert all headers but it should fix an issue I had while using the package.Don't know if it should be a specific ES version, hope this is ok and it helps anyone else if they encounter a similar issue 😄