-
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
Add firebase login route #56
Conversation
Weird, Parth is the default codeowner now, might want to look into that. |
Visit the preview URL for this PR (updated for commit 4ca8db9): https://pia-dev-60cea--pr56-feature-vs2961-login-yr63jaiz.web.app (expires Fri, 01 Mar 2024 00:45:46 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: b780ee12a240535f7ca0729d49968573a1f3e284 |
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.
looks good!
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.
Looks good
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.
LGTM!!! 🚀
const errors = validationResult(req); | ||
validationErrorParser(errors); | ||
|
||
const { email, password } = req.body; |
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.
Do we want to consider encrypting the password so that it's protected? I'm sure there some basic packages we could use for encryption/decryption.
Tracking Info
Resolves #38
Changes
Added route for login
Testing
Tested it with Postman.
Call
localhost:4000/api/user/login
withConfirmation of Change
Run the backend and run with postman.