Access Levels Based on Address, Github, Email #1023
Replies: 5 comments 8 replies
-
Why did we want to force Github sign-in for create, fund, refund again? I think it's not too complicated to allow this without github login..? Was it to be more united on the sign in logic side? (I'd want to refactor the code a bit so that we always use the same component ConnectButton for connecting the wallet where needed, then it's easier to implement the logic isAuthenticated or not in case we want to adapt this logic) Also - should we add the logic for stuff to be invoiceable? I guess that would be EMAIL + Wallet Connected + Minimum Info for Invoices? (both on the funder and claimer side?) |
Beta Was this translation helpful? Give feedback.
-
So if Andrew signs up for a hackathon, we have an email user with UUID 123. Andrew then later OAuths with Github. We now have a Github user with UUID 456. We don't yet know I'm the same person. Where and when do we link the two? On the https://app.openq.dev/user/123 page for my email user, it will say On the https://app.openq.dev/user/456 page for my email user, it will say "Link your Email" Once I link my email to my Github, we merge all my Email info INTO the Github User. We then delete the old email user. It is now still a unique email in our API as it HAS TO BE. On the other hand, once I link my Email to my Github, nothing happens besides A) checking that the email is unique, and B) inserting it into my existing Github user. When Email and Github users collide, Github absorbs the email user. |
Beta Was this translation helpful? Give feedback.
-
One problem is that this would break old links to the https://app.openq.dev/user/123 page since that user would be deleted. Unless perhaps we use usernames? |
Beta Was this translation helpful? Give feedback.
-
Should we AUTO-LINK the Github if I OAuth while signed in as an email user? Should we AUTO-LINK the Email if I Email auth while signed in as a github user? |
Beta Was this translation helpful? Give feedback.
-
How are we going to connect ethereum address connected data in the subgraph to our users? Do we just use the on chain address to external userid connection? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
NO CONNECTION
GITHUB
GITHUB + Wallet Connected
GITHUB + Wallet Connected + On-Chain Wallet Connection
EMAIL
EMAIL + Wallet Connected
Sign Up Flow
New user, "Login" button on top right. No Wallet Connect showing.
NOTE: (If they try for Fund, Refund, or Mint Contract - say "Login" - then show Connect Wallet)
Click Login button, show modal with Github or Email login
Main sign up modal - should be exciting, explain the benefits, etc.
Check email is unique etc.
Redirect them to their fresh new user profile, encourage them to fill it out
After redirect (whether it's from MagicLink redirect or OAuth redirect), if it's a new user redirect to user profile, prompt to add username
Beta Was this translation helpful? Give feedback.
All reactions