-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add JWT #389
Feature: Add JWT #389
Conversation
|
||
|
||
user.token = jwt.sign({ id: user.userId }, SecretToken, { | ||
expiresIn: 86400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 day
.put("/:modelId/rename", rename) | ||
.get("/:modelId/export", exportModel) | ||
.post("/import", importModel); | ||
.get("/",validateJWT, listAll) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me know if this validation is not needed in any of those endpoints, or if I missed any
So,... I'm not the best person to review this pull request 😓 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing job here @joaomfiumari! I am sorry I took so long to review it.
This pull request improves drastically our session management, we really appreciate your effort.
249dc42
to
02b7e71
Compare
02b7e71
to
d79aa99
Compare
d79aa99
to
e2b3e43
Compare
Summary
JWT: JSON Web Tokens