Skip to content

Comments

JSAEM2-44 fixed: correct the token verify middleware#37

Open
tonghaoch wants to merge 1 commit intodevelopmentfrom
JSAEM2-44_update_verify_token_in_middleware
Open

JSAEM2-44 fixed: correct the token verify middleware#37
tonghaoch wants to merge 1 commit intodevelopmentfrom
JSAEM2-44_update_verify_token_in_middleware

Conversation

@tonghaoch
Copy link
Collaborator

No description provided.

@tonghaoch tonghaoch requested a review from KatyTao January 10, 2020 15:40
Copy link
Collaborator

@KatyTao KatyTao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@KatyTao KatyTao requested a review from ikarasz January 15, 2020 14:05
req.token = token;
return next();
try {
req.authUser = jwt.verify(token, process.env.JWT_SECRET);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't really understand. Isn't this already in the development branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants