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.
Description
Added Google OAuth authentication to enhance the login system, allowing users to sign in using their Google accounts. This implementation includes both backend integration with Passport.js and frontend UI components.
Related Issues
N/A - This feature was implemented as part of a contribution to improve the authentication system.
Steps to Test
Register your application in the Google Cloud Console to get OAuth credentials
Update the .env file with your GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
Ensure your Google Cloud Console project has the redirect URI configured as http://localhost:8888/api/auth/google/callback
Start the application (both frontend and backend)
Go to the login page
Click on "Continue with Google" button
Complete the Google authentication flow
Verify that you are successfully logged in and redirected to the dashboard
Screenshots (if applicable)
N/A - The changes include a styled Google login button on the existing login page.
Checklist
✔️ I have tested these changes
✔️ I have updated the relevant documentation
✔️ I have commented my code, particularly in hard-to-understand areas
✔️ I have made corresponding changes to the codebase
✔️ My changes generate no new warnings or errors
✔️ The title of my pull request is clear and descriptive