Skip to content

Commit

Permalink
fix(authentication): Upgrade passport-jwt to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Feb 16, 2016
1 parent 6034373 commit 4ef28bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/authentication/templates/config/passport.js
Expand Up @@ -45,7 +45,7 @@ const LOCAL_STRATEGY_CONFIG = {
*/
const JWT_STRATEGY_CONFIG = {
secretOrKey: '<%= options["secret-key"] %>',
jwtFromRequest: ExtractJwt.versionOneCompatibility({ tokenBodyField: 'access_token' }),
jwtFromRequest: ExtractJwt.versionOneCompatibility({tokenBodyField: 'access_token'}),
tokenQueryParameterName: 'access_token',
authScheme: 'Bearer',
session: false,
Expand Down

0 comments on commit 4ef28bf

Please sign in to comment.