Skip to content

Add: Set Up User Authentication, Form validations, login, logout, sig…#41

Merged
Limeload merged 1 commit intoLimeload:mainfrom
Aditya-JOSH:feature/user-auth-frontend
Oct 28, 2025
Merged

Add: Set Up User Authentication, Form validations, login, logout, sig…#41
Limeload merged 1 commit intoLimeload:mainfrom
Aditya-JOSH:feature/user-auth-frontend

Conversation

@Aditya-JOSH
Copy link
Contributor

@Aditya-JOSH Aditya-JOSH commented Oct 27, 2025

Description

This PR sets up the entire user authentication system integrating a React frontend with a Rails API backend. It includes secure login, logout, and registration flows with client-side validations, API service integration, and enhanced UX through error handling and password strength enforcement.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changes Made

  • Created a centralized React AuthContext using Context API to manage user authentication state throughout the app.
  • AuthProvider component stores and manages user data, tokens, error and loading states with hooks like useState and useCallback.
  • Implemented login, register, logout, and session check functions in AuthContext for API integration with backend auth endpoints.
  • Exposed authentication functions and state (user, error, loading, isAuthenticated) via AuthContext.Provider to child components.
  • Provided a custom useAuth hook to simplify context consumption across the application.

Testing

Describe how you tested these changes:

  • Unit tests added/updated
  • Integration tests pass
  • Manual testing performed

Screenshots (if applicable)

Screenshot 2025-10-27 at 10 27 17 AM Screenshot 2025-10-27 at 10 25 58 AM

Related Issues

Closes #8

@Aditya-JOSH
Copy link
Contributor Author

@Limeload Could you please review this PR and assign me this issue #23 ?

@Limeload Limeload merged commit 95786c0 into Limeload:main Oct 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set Up User Authentication (Frontend)

2 participants