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

As a registered user in Discord, I want to connect my Twitter handle to my Praise profile so I can start Praising on Twitter #1077

Open
kristoferlund opened this issue Jun 14, 2023 · 3 comments
Labels
enhancement New feature or request twitter-bot

Comments

@kristoferlund
Copy link
Member

kristoferlund commented Jun 14, 2023

Main Success Scenario

  1. User navigates to [community].givepraise.xyz/activate-twitter
  2. User logs in with Twitter credentials to prove ownership of Twitter account
    1. Uses the "Login with Twitter" oauth flow (https://developer.twitter.com/en/docs/authentication/guides/log-in-with-twitter)
  3. A UserAccount is created
    1. Praise dashboard calls API to create UserAccount in a secure way
  4. Users signs message with Metamask to prove ownership of ETH address.
    1. The activateToken needs to be verified. That token is created in step 2-3.
  5. Twitter UserAccount is linked to Praise identity
    1. Call to API to verify signature, create User, link it to UserAccount
  6. Done

Extensions

3.1 No Discord UserAccount exists
3.2 UserAccount exists and is already activated (connected to a User object)

Details

  • IMPORTANT: User needs to be activated through Discord as well before being allowed to activate on Twitter

In database after activation:

User {
  _id: 123,
  identityEthAddress: "0x123...456",
  username: "grandpuba",
  ...
}

UserAccount {
  _id: 555,
  user: 123,
  accountId: u09878979, // Twitter id
  name: "grandpuba",
  platform: "TWITTER"
  ...
}

Open Questions

  • Can anyone activate an account? If not, how do we determine who gets to activate?
    • You need to first have a Discord user account linked with your Praise identity

Wireframes

Twitter Praise Bot - As a user I want to praise anyone on Twitter.jpg

Links and docs

See full wireframes here: https://miro.com/app/board/uXjVMBzP9YQ=/?share_link_id=144897159619

@cmaxwe11
Copy link

Suggested clarification: <As a registered user in Discord, I want to connect my Twitter handle to my Praise profile so I can start Praising on Twitter>

@kkatusic
Copy link
Collaborator

Than user will have more than one UserAccount?

@kristoferlund
Copy link
Member Author

@kkatusic yes

@kristoferlund kristoferlund changed the title As a user I want to activate my account so that I can start praising As a registered user in Discord, I want to connect my Twitter handle to my Praise profile so I can start Praising on Twitter Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request twitter-bot
Projects
None yet
Development

No branches or pull requests

4 participants