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

22 next auth routes #34

Merged
merged 7 commits into from
Feb 11, 2024
Merged

22 next auth routes #34

merged 7 commits into from
Feb 11, 2024

Conversation

sophiapeckner
Copy link
Contributor

Developer: Sophia Peckner

Closes #22

Pull Request Summary

Created login and sign up GET/ POST api routes

Modifications

Created three api routes for when user signs up with an email and password, to check if the user already exists, and to get a user from passed in email address.

Testing Considerations

I've tested every request on Postman.
Things to note. Name is currently an optional property in the UserSchema; I'm unsure if we want to make it required. Created users are currently being added to the users collection in the test database, I'm not sure if this should be the case.

Pull Request Checklist

  • Code is neat, readable, and works
  • Comments are appropriate
  • The commit messages follows our guidelines
  • The developer name is specified
  • The summary is completed
  • Assign reviewers

Screenshots/Screencast

22_3 22_1 22_2

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ecologistics-web-scraper ✅ Ready (Inspect) Visit Preview Feb 9, 2024 5:44am

Copy link
Collaborator

@ryanchansf ryanchansf left a comment

Choose a reason for hiding this comment

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

This looks great Sophia! The code is clean and organized, and the routes seem to interact with MongoDB well. Great job checking the API routes with Postman too. The schema looks good too — eventually we can make change to the UI to accommodate for a name field, so it's fine that we have it as optional for now. I know this was a relatively large task this week, so thank you so much for working on this! Merging

@ryanchansf ryanchansf merged commit 8445a53 into develop Feb 11, 2024
4 checks passed
@ryanchansf ryanchansf deleted the 22-next-auth-routes branch February 11, 2024 01:17
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.

Set up login and sign up routes
2 participants