-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
GSSoC 25enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededlevel 3
Description
Summary
Integrate Google OAuth as an additional authentication method in AlumConnect, enabling users to sign in with their Google accounts.
Requirements
- Enable Google provider in Supabase authentication settings.
- Configure Google API credentials (Client ID and Client Secret).
- Add "Sign in with Google" button in the login page UI.
- Ensure the flow works for both web and mobile views.
- Maintain consistent branding and styling for the Google button.
- Handle authentication errors gracefully.
Implementation Details
Suggested files:
src/components/Auth/Login.tsx– Add Google sign-in button and handler.src/lib/supabaseClient.ts– Ensure provider setup..env– Store Google OAuth credentials.
Steps:
- Create a project in Google Cloud Console.
- Enable OAuth consent screen and configure authorized redirect URIs:
- Local:
http://127.0.0.1:54321/auth/v1/callback - Production:
https://your-project.supabase.co/auth/v1/callback
- Local:
- Add credentials to Supabase > Authentication > Providers > Google.
- Implement
signInWithOAuth('google')method from Supabase client.
Tasks
- Configure Google OAuth in Supabase.
- Add environment variables.
- Update login UI.
- Test sign-in flow.
Testing
- Verify login works with Google in local and production.
- Check responsive design of button.
- Ensure error handling is user-friendly.
References
- Supabase Docs: Google Sign-In
- Google Cloud Console: Credentials Setup
Metadata
Metadata
Assignees
Labels
GSSoC 25enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededlevel 3