Closed JemiloII closed 4 years ago
https://github.com/mikenicholson/passport-jwt/blob/6b92631dfbde7143b9e046093dbf332107bce82e/lib/extract_jwt.js#L16
New to the project, but I thought this would be useful. extractors.fromHeader = function (header_name = AUTH_HEADER) {
extractors.fromHeader = function (header_name = AUTH_HEADER) {
This way we could simply user ExtractJWT.fromHeader() without needing to type 'authorization'
ExtractJWT.fromHeader()
see fromAuthHeader* extractor functions. in extract_jwt.js
fromAuthHeader*
https://github.com/mikenicholson/passport-jwt/blob/6b92631dfbde7143b9e046093dbf332107bce82e/lib/extract_jwt.js#L16
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'