This repository was archived by the owner on Aug 29, 2018. It is now read-only.
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
Purpuse of lower casing header option #52
Closed
Description
I'm wondering what is the purpuse of toLowerCase in the code below:
let strategyOptions = merge({ secretOrKey: jwtSettings.secret, jwtFromRequest: ExtractJwt.fromExtractors([ ExtractJwt.fromAuthHeaderWithScheme('jwt'), ExtractJwt.fromAuthHeaderAsBearerToken(), ExtractJwt.fromHeader(jwtSettings.header.toLowerCase()), ExtractJwt.fromBodyField(jwtSettings.bodyKey) ]) }, jwtSettings.jwt, omit(jwtSettings, ['jwt', 'header', 'secret']));
Metadata
Metadata
Assignees
Labels
No labels