Skip to content

Feat: Implement authentication system - #7

Merged
Upendra48 merged 1 commit into
developfrom
backend/authentication
May 15, 2026
Merged

Feat: Implement authentication system#7
Upendra48 merged 1 commit into
developfrom
backend/authentication

Conversation

@Upendra48

Copy link
Copy Markdown
Owner
  • Added JWT token generation utilities with generate_access_token and generate_refresh_token in jwt_utils.py, using a secret key from environment variables or Django settings.

  • Implemented password hashing and verification using bcrypt in utils.py to securely store and compare user passwords.

  • Created service functions in services.py for registering users (with default board/columns creation) and logging in users (with JWT issuance).

  • Added a jwt_required decorator in middleware.py to protect endpoints by validating JWTs and attaching the user to the request.

  • Added API endpoints in views.py for user registration, login, and fetching the current user, integrating the above services and middleware.

@Upendra48
Upendra48 merged commit bfb27d5 into develop May 15, 2026
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.

1 participant