Merged
Conversation
Owner
jitendra-ky
commented
Dec 5, 2025
- fix: refactor auth system to JWT. #99
- Added a custom user model `User` with email as the unique identifier. - Updated settings to use the custom user model. - Refactored admin, serializers, and views to accommodate the new user model. - Replaced `UserProfile` and `UnverifiedUserProfile` with `User` and `UnverifiedUser`. - Updated migrations to reflect the new user model structure. - Adjusted tests to work with the new user model and ensure proper functionality.
- Added djangorestframework-simplejwt to development and production requirements. - Updated app_states.js to manage access and refresh tokens instead of session IDs. - Modified home.js and signin.js to utilize JWT tokens for authentication. - Removed session model and related code from user_profile and message views. - Updated user profile and message views to use JWT authentication. - Created new JWT token endpoints for obtaining, refreshing, and verifying tokens. - Updated tests to reflect changes in authentication method from session-based to JWT.
3caa00c to
714c35e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.