feat: Add complete user authentication system#259
Open
kris70lesgo wants to merge 1 commit intoTanmayKalra09:mainfrom
Open
feat: Add complete user authentication system#259kris70lesgo wants to merge 1 commit intoTanmayKalra09:mainfrom
kris70lesgo wants to merge 1 commit intoTanmayKalra09:mainfrom
Conversation
|
@kris70lesgo is attempting to deploy a commit to the Tanmay Kalra's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
@TanmayKalra09 can u review it ? |
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.
🚀 Pull Request
📋 Description
This PR implements a comprehensive user authentication system for SmartLog, enabling individual users to create accounts and securely access their personal expense tracking data.
Key Features Added:
Fixes #189
🔍 Type of Change
New feature ✨
Refactoring or code improvement ♻️
Other (please describe):
🙋 Your Details
Name: Agastya khati
Email ID: krishkhati70@gmail.com
🧪 How Has This Been Tested?
Backend Testing:
✅ User registration API endpoint (POST /api/v1/users/sign-up)
✅ User login API endpoint (POST /api/v1/users/sign-in)
✅ User logout API endpoint (POST /api/v1/users/logout)
✅ JWT token generation and validation
✅ Password hashing and verification
✅ Protected route middleware functionality
Frontend Testing:
✅ Registration form with validation (password matching, required fields)
✅ Login form with loading states and error handling
✅ Protected route redirection (unauthenticated users redirected to login)
✅ Authentication context state management
✅ Persistent login across page refreshes
✅ Logout functionality clearing user session
✅ Toast notifications for user feedback
Integration Testing:
✅ Complete user journey: Register → Login → Access Dashboard → Logout
✅ Authentication persistence across browser tabs
✅ Proper error handling for invalid credentials
✅ Form validation and user feedback