Skip to content

Commit

Permalink
fix: jwt store token property
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Dec 2, 2022
1 parent 3a55746 commit 775df46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class JwtStoreStrategy extends PassportStrategy(JWTStrategy, JWT_STORE_ST
const { jwt_secret } = configModule.projectConfig;
super({
jwtFromRequest: (req) => {
return req.cookies[STORE_AUTH_TOKEN_COOKIE_NAME] ?? req.session.jwt;
return req.cookies[STORE_AUTH_TOKEN_COOKIE_NAME] ?? req.session.jwt_store;
},
secretOrKey: jwt_secret,
});
Expand Down

0 comments on commit 775df46

Please sign in to comment.