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

backend: created user model and authMiddleware #85

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

sethdivyansh
Copy link
Contributor

@sethdivyansh sethdivyansh commented Jun 8, 2024

Description

This PR adds:

  • User Model: Created with name and password fields.
  • Auth Middleware: JWT authentication middleware.
  • User controller: Login and Register user.
  • Auth Endpoints: Register and login endpoints.

Fixes: #62

Motivation and Context

This PR is continuation of PR #71

Checklist

  • I have tested these changes locally.
  • I have reviewed the code and ensured it follows the project's coding guidelines.
  • I have updated the documentation, if necessary.
  • I have assigned reviewers to this pull request.

Test Screenshots

Register:
image

Login:
image

Copy link

vercel bot commented Jun 8, 2024

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

Name Status Preview Comments Updated (UTC)
multiplayer-uno ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 9:43pm

This commit adds:
- User Model: Created with name and password fields.
- Auth Middleware: JWT authentication middleware.
- User controller: Login and Register user.
- Auth Endpoints: Register and login endpoints.

Fixes: shivansh-bhatnagar18#62
@kuv2707 kuv2707 merged commit c31229f into shivansh-bhatnagar18:master Jun 9, 2024
8 checks passed
@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 9, 2024

Looks good to me, thanks @sethdivyansh !

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.

Implement JWT Authentication for User login and registration
2 participants