mikenicholson/passport-jwt

Adding ES6 Defaults for AUTH_HEADER

JemiloII opened this issue · 1 comments

extractors.fromHeader = function (header_name) {

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'

see fromAuthHeader* extractor functions. in extract_jwt.js