-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(web): GitHub Login #151
base: main
Are you sure you want to change the base?
Conversation
TODO: error handling when a user with the same email has previously logged in using a different provider |
Great, love it this would certainly break parts of the app though. for eg. the supermemory/apps/web/app/api/ensureAuth.ts Lines 19 to 54 in deb86ec
|
@Dhravya I can add the same logic for github api. But the logic for creating a user on mobile https://github.com/supermemoryai/supermemory/blob/main/apps/web/app/api/ensureAuth.ts#L80 doesn't seem correct. It is missing adding a row account table. Can I take a look at the mobile app? Is it in RN? |
eh, yeah that logic is probably broken right now yes it is RN |
Code Review✅ All Clear: This PR is ready to merge! 👍
Useful Commands
|
feat(web): GitHub Login
Overview
This pull request introduces GitHub login functionality to the web application, enhancing the authentication options available to users. It also refactors the existing Google login implementation to improve code organization and maintainability.
Changes
Key Changes:
GitHubLogin
component for GitHub authentication.GoogleLogin
component for Google authentication.Signin
page to utilize the new login components instead of inline forms.New Features:
GitHubLogin
component.GoogleLogin
component allows users to log in with their Google accounts, maintaining existing functionality.Refactoring:
Signin
page has been replaced with theGoogleLogin
component, promoting reusability and separation of concerns.signIn
function calls have been encapsulated within their respective components, improving readability and maintainability of the codebase.auth.ts
file has been updated to include the GitHub authentication provider, ensuring that the backend supports the new login method.Original Description
None