Skip to content
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

Merged
merged 6 commits into from
Feb 23, 2024
Merged

Add firebase login route #56

merged 6 commits into from
Feb 23, 2024

Conversation

vs2961
Copy link
Contributor

@vs2961 vs2961 commented Feb 13, 2024

Tracking Info

Resolves #38

Changes

Added route for login

Testing

Tested it with Postman.

Call localhost:4000/api/user/login with

{
    "email" : "[email protected]",
    "password":"abc123"
}

Confirmation of Change

Run the backend and run with postman.

@vs2961 vs2961 marked this pull request as ready for review February 13, 2024 00:36
@vs2961 vs2961 requested a review from parth4apple as a code owner February 13, 2024 00:36
@vs2961 vs2961 requested a review from adhi0331 February 13, 2024 00:37
@vs2961
Copy link
Contributor Author

vs2961 commented Feb 13, 2024

Weird, Parth is the default codeowner now, might want to look into that.

@adhi0331 adhi0331 removed the request for review from parth4apple February 13, 2024 01:22
Copy link

github-actions bot commented Feb 13, 2024

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

@adhi0331 adhi0331 requested review from lisasiliu and mraysu February 16, 2024 02:51
Copy link
Member

@lisasiliu lisasiliu left a comment

Choose a reason for hiding this comment

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

looks good!

Copy link
Contributor

@mraysu mraysu left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@adhi0331 adhi0331 left a 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;
Copy link
Member

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.

@adhi0331 adhi0331 merged commit 0596bc6 into main Feb 23, 2024
4 checks passed
@adhi0331 adhi0331 deleted the feature/vs2961/login_backend branch February 23, 2024 19:23
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.

[Login To User Account] - Implement the functionality to login using firebase
5 participants