const passportJWT = require('passport-jwt');

module.exports = {
  'header': passportJWT.ExtractJwt.fromHeader,
  'body': passportJWT.ExtractJwt.fromBodyField,
  'query': passportJWT.ExtractJwt.fromUrlQueryParameter,
  'authScheme': passportJWT.ExtractJwt.fromAuthHeaderWithScheme,
  'authBearer': passportJWT.ExtractJwt.fromAuthHeaderAsBearerToken
};

const passportJWT = require('passport-jwt');

module.exports = {
  'header': passportJWT.ExtractJwt.fromHeader,
  'query': passportJWT.ExtractJwt.fromUrlQueryParameter,
  'authScheme': passportJWT.ExtractJwt.fromAuthHeaderWithScheme,
  'authBearer': passportJWT.ExtractJwt.fromAuthHeaderAsBearerToken
};

Remove body as an extractor