Add Supabase Authentication (Magic Link, GitHub, Guest)#15
Open
factory-droid[bot] wants to merge 3 commits intomainfrom
Open
Add Supabase Authentication (Magic Link, GitHub, Guest)#15factory-droid[bot] wants to merge 3 commits intomainfrom
factory-droid[bot] wants to merge 3 commits intomainfrom
Conversation
- Install @supabase/supabase-js dependency - Create Supabase client configuration in src/lib/supabase.ts - Add Magic Link and GitHub authentication tabs to LoginPage - Update guest mode to use Supabase anonymous sign-in - Extend AuthContext to support both keystore and Supabase authentication - Update Index page to handle both authentication methods - Maintain all existing UI/UX design and functionality - Keep keystore authentication fully functional alongside Supabase options
- Use window.location.href instead of window.location.origin for exact page redirects - Add getURL helper function in supabase.ts for dynamic URL handling - Update AuthContext to use getURL for GitHub and Magic Link redirects - This ensures users return to exactly where they started regardless of hosting location - Works universally for localhost (any port), local HTML files, or deployed websites
- Add getBasePath() helper to detect application base URL dynamically - Configure BrowserRouter with dynamic basename for universal path support - Update URL handling to work with GitHub Pages or any subdirectory host - Support local file usage, offline mode, and any deployment environment - Ensure all relative paths work correctly regardless of hosting location
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.
Supabase Authentication Integration
This PR integrates Supabase authentication into the Path To Python platform while maintaining all existing functionality:
✅ What's Added:
✅ Improvements:
✅ Technical Details:
@supabase/supabase-jsdependencyTesting:
Note:
This PR was created by FACTORY AI to implement the requested authentication features while preserving the original UI, styles, and functionality of the Python learning platform.
Factory Session: https://app.factory.ai/sessions/uvRuYjqbaaKmtFGIpEh1