Skip to content
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

Login in process #876

Open
windatang opened this issue Dec 6, 2024 · 0 comments
Open

Login in process #876

windatang opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
P-High [Priority] High

Comments

@windatang
Copy link

Smart wallet owner support (v1)

  • Social login (Google account) → 2FA verification
  • Email OTP → 2FA verification
  • Existing wallet → Connection methods/authorization (Metamask & WalletConnect)

Prototype/graphical design 原型设计:[Helix]

Email OTP → Non-custodial EOA with Magic (obtain owner address) → Smart wallet implementation using Safe wallet

flowchart TB
    Start["Start"] --> EmailOTP["Email OTP Verification"]
    EmailOTP --> Magic["Non-custodial EOA Creation\nvia Magic"]
    Magic --> GetAddress["Obtain Owner Address"]
    GetAddress --> SafeWallet["Smart Wallet Implementation\nusing Safe Wallet"]
    SafeWallet --> Complete["Account Creation Complete"]

    %% Subprocesses
    EmailOTP --> |"Failed"| RetryOTP["Retry OTP"]
    RetryOTP --> EmailOTP
    
    Magic --> |"Failed"| RetryEOA["Retry EOA Creation"]
    RetryEOA --> Magic
    
    SafeWallet --> |"Failed"| RetrySafe["Retry Safe Wallet Setup"]
    RetrySafe --> SafeWallet

    %% Styling with light colors
    classDef default fill:#f9f9f9,stroke:#666,stroke-width:1px,color:#000
    classDef process fill:#f0f7ff,stroke:#4a90e2,stroke-width:1px
    classDef error fill:#fff0f0,stroke:#e2808a,stroke-width:1px
    classDef success fill:#f0fff4,stroke:#68b984,stroke-width:1px
    
    class Start,Complete success
    class EmailOTP,Magic,GetAddress,SafeWallet process
    class RetryOTP,RetryEOA,RetrySafe error

    %% Light theme styling
    linkStyle default stroke:#666,stroke-width:1px
Loading
@windatang windatang added the P-High [Priority] High label Dec 6, 2024
@windatang windatang added this to the Smart account milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-High [Priority] High
Projects
None yet
Development

No branches or pull requests

2 participants