feat(auth): full login stack with Reown, email, social, and browser fallback - #1
Merged
Merged
Conversation
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Replace Solana-only gateway login with multi-provider DropAuthService: Reown AppKit wallet/social/email, native Google/Apple, gateway email OTP, Solana Mobile Wallet Adapter, and desktop browser auth (erebrusdrop://). - Add GatewayLoginScreen with per-platform button layout. - Keep gateway nodes as Smart Send / Library targets only and default to the first org returned by the gateway. - Add auth_config, social_login, desktop_web_auth helpers. - Update pubspec deps: reown_appkit, google_sign_in, sign_in_with_apple, url_launcher, app_links, package_info_plus. - Wire iOS/macOS/Android deep-link scheme and wallet package queries.
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.
Summary
Replaces the Solana-only gateway login with the full Erebrus auth stack, matching
erebrus-vpn: Reown AppKit (wallet + social/email), native Google/Apple, gateway email OTP, Solana Mobile Wallet Adapter for Seeker/Saga, and a desktop browser fallback that returns a PASETO token viaerebrusdrop://deep links.What changed
DropAuthServicenow orchestrates all login methods and exposes the same session/org state (ValueNotifiers forsignedIn,orgs,selectedOrg,error,isAuthenticating).GatewayLoginScreenselects the right UX per platform:auth_config.dart,social_login.dart, anddesktop_web_auth.dartfor provider IDs, deep-link scheme, and browser callback parsing.DropAuthClientwith/api/v2/auth/methods,/api/v2/auth/email/login/*,/api/v2/auth/google, and/api/v2/auth/apple.reown_appkit,google_sign_in,sign_in_with_apple,url_launcher,app_links,package_info_plus.erebrusdrop://authdeep-link intent filters and wallet package queries inAndroidManifest.xml,ios/Runner/Info.plist, andmacos/Runner/Info.plist.Verification
flutter analyzepasses.flutter testpasses (27/27).Configuration notes
REOWN_PROJECT_IDvia--dart-defineor.envto enable the Reown AppKit wallet modal.GOOGLE_SERVER_CLIENT_IDandAPPLE_SERVICE_IDfor native social sign-in.Link to Devin session: https://app.devin.ai/sessions/0ca3cab2e7c8426d871995c288798a3e
Requested by: @Shachindra