amberwelby / MonkeyTypeLeaderboard

Leaderboard for https://monkeytype.com/ for small, friendly competitions
1 stars 0 forks source link

How should users log in? #2

Open amberwelby opened 1 month ago

amberwelby commented 1 month ago
  1. Should each user have their own account, or should each group have one account?
  2. If users have their own account, should they log in with a username and password or a username and their group name?
  3. Should users be able to be apart of more than one group? Should they be able to flip between their groups from their account, or should they "log in" to each group when they want to see that leaderboard? 4. Can users log in using their MonkeyType account?
AarhamH commented 1 month ago
  1. I think users should have an account, but have the ability to join/create groups once they log in. The user in this case does not have to be a MonkeyType user, but when they make a group, they can add monkey type profiles that have to exist in their site. There can also be roles within a group (e.g. reader, admin, etc).
  2. Users should be able to login with an email and password. I think the groups will be tied with their account.
  3. There can be a one-to-many relationship here (many groups per user, but every group needs to have a unique user). The groups can be accessed by the user once the user has logged in.
  4. Since Monkeytype API kinda sucks at providing any form of SSO, i think its easier to have MonkeyTypeLeaderboard users independent from MonkeyType users (i.e. you don't need to be registered in monkeytype to have an account for the leaderboard).