Adding ES6 Defaults for AUTH_HEADER
JemiloII opened this issue · 1 comments
JemiloII commented
passport-jwt/lib/extract_jwt.js
Line 16 in 6b92631
New to the project, but I thought this would be useful.
extractors.fromHeader = function (header_name = AUTH_HEADER) {
This way we could simply user ExtractJWT.fromHeader()
without needing to type 'authorization'
mikenicholson commented
see fromAuthHeader*
extractor functions. in extract_jwt.js