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

Implementing user registration, login, and logout functionalities #7

Closed
10 tasks done
gorkem-bwl opened this issue Apr 23, 2024 · 2 comments
Closed
10 tasks done
Assignees
Labels
backend Backend task/issue enhancement New feature or request

Comments

@gorkem-bwl
Copy link
Contributor

gorkem-bwl commented Apr 23, 2024

Schema design:

  • Define the schema for the user table, including fields such as username, email, password (hashed), etc.

Registration endpoint:

  • Create an endpoint to handle user registration
  • Validate incoming user data (e.g., username uniqueness, password strength)
  • Hash and store passwords securely in the database

Login endpoint:

  • Implement an endpoint for user login
  • Verify user credentials against the stored data.
  • Generate and return a JWT (JSON Web Token) upon successful authentication.

Logout Endpoint:

  • Implement an endpoint for user logout.
  • Invalidate or expire the JWT token.

Session management:

  • Handle user sessions securely (e.g., token expiration, token refreshing)
@gorkem-bwl gorkem-bwl added enhancement New feature or request backend Backend task/issue labels Apr 23, 2024
@gorkem-bwl
Copy link
Contributor Author

Is this complete @shidrath ?

@gorkem-bwl
Copy link
Contributor Author

Closing this, fyi @shidrath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend task/issue enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants