Repository navigation
Davidgu/safeguard for email/password jwt generation route - #233
Merged
llam36 merged 2 commits intoApr 2, 2026
Merged
Conversation
…t found in database, and also added a test to make sure NOT_FOUND is thrown when user isn't found in DB-service
…or is unknown for anything but the not found and it logs the error message to sentry
Contributor
|
Disclaimer: This comment was AI-generated and is not necessarily completely accurate. Please take code comments with a grain of salt. Greptile Summary
Confidence Score: 4/5
Important Files Changed
|
Contributor
There was a problem hiding this comment.
3 files reviewed, no comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not a huge concern, but there currently isn't a guardrail for valid email/password but deleted user entry. The exception is still caught before returning to the user, but not before emitting an error metric in Sentry.
Fix
authenticateTesting
authenticatecorrectly catches invalid prisma returnCreated the test in Auth-service.
authenticate now no longer logs a not found error and logs any other error from db service and throws an unknown error when that happens.