Skip to content

Commit

Permalink
fix(authentication): use bearer passport built-in function
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentinTh committed Sep 27, 2021
1 parent b3575f0 commit d85f235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Config from '@Config';
passport.use(
new JwtStrategy(
{
jwtFromRequest: ExtractJwt.fromAuthHeaderWithScheme('bearer'),
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
secretOrKey: Config.getConfig().jwtSecret
},
async (payload, done) => {
Expand Down

0 comments on commit d85f235

Please sign in to comment.