Skip to content

feat: improve docs security jwt#22

Draft
tranduc2612 wants to merge 1 commit into
mainfrom
feat/security/jwt
Draft

feat: improve docs security jwt#22
tranduc2612 wants to merge 1 commit into
mainfrom
feat/security/jwt

Conversation

@tranduc2612
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Member

@nhattran998 nhattran998 left a comment

Choose a reason for hiding this comment

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

Please update your PR instead of using <b> --> using **

Comment thread content/docs/techniques/web/security/jwt.mdx Outdated
Comment thread content/docs/techniques/web/security/jwt.mdx
})

// Middleware to verify JWT
const authenticate = async (req, res, next) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This authenticate function won't help you when your user's token is stolen. In my point of view, you might need to give the users a warning about suspicious activities on their account if the devices or IPs used to access their accounts differ from their original ones

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