Skip to content

Refactoring/magic#101

Merged
jitendra-ky merged 6 commits intomainfrom
refactoring/magic
Dec 7, 2025
Merged

Refactoring/magic#101
jitendra-ky merged 6 commits intomainfrom
refactoring/magic

Conversation

@jitendra-ky
Copy link
Owner

jitendra-ky and others added 6 commits December 7, 2025 12:19
- 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.
@jitendra-ky jitendra-ky merged commit a2a9b6b into main Dec 7, 2025
1 check passed
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.

refactor auth system to JWT.

1 participant