-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for user profile. #15
Comments
Regarding #56, I'm noticing the user profiles on Firebase don't necessarily have a name set for them. Do we want to display the email instead? Or should we add editing of user profiles in the future? |
What if we parse the username of the email. E.g diego@collaction.org. So the "name" would be diego. And we format the name with |
We can do that for the time being. Correct me if I'm wrong @Xazin, but the goal is to pull user profiles from the API, and get names from there, which likely means we'll need a |
|
To clarify, when a user joins/creates a profile in the app, is a Firebase user created for them automatically? Or are they completely separate? |
They are completely decoupled. The firebase user comes first, how would a user have a profile without being able to sign in. API documentation for endpoints https://devapi.collaction.org/ |
Keep in mind that there are two types of profile: Admins and Moderators, one approach to handle this is creating an enum and field, like Role { admin, moderator }
The reason for this is to allow the app to respond to the user's role. For example, if the user is a moderator, options to invite moderators or promote them should not appear. One approach is to listen to
AuthBloc
user stream.The text was updated successfully, but these errors were encountered: