-
Notifications
You must be signed in to change notification settings - Fork 0
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
Authentication service/tests #39
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This reverts commit 11ced20.
AuthModule, | ||
PassportModule, | ||
JwtModule.register({ | ||
secret: process.env.JWT_SECRET, |
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.
What does secret mean?
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.
it's what's used to generate the jwt token and decode it
if (user?.pswdHash && !(await bcrypt.compare(pass, user.pswdHash!))) { | ||
return null; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
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.
Is this for eslint? Do we need to keep this line?
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.
we're basically splitting out the password from the object and using js destructuring to do it, but that means we have an unused variable that eslint complains abt. just telling eslint to ignore this one line for that error
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.
2 small questions are linked, but looks good.
Description/Problem
Closes Authentication service/tests
Add basic auth groundwork.
Solution
Add basic auth groundwork.
Dependencies
[X] This PR adds new dependencies
Testing
Please describe how you tested this PR (manually and/or automatically)
Provide instructions so we can reproduce, and include screenshots of UI changes.