Open oreporan opened 8 years ago
As of now there is still no way to upload a profile picture, but FB users will have the path to their profile pictures automatically.
When I open another endpoint for users/profilePic
for adding/getting a profile pic, then i will close this issue
I'm not sure how to do it, maybe it makes more sense to add the profilePic image itself to the user object. Because if I just give a URL then for each user you need to make 2 requests to the DB. But then we have the FB/Google users, should I get the image for them also? or leave the client to do this?
mmm..
@Yahavw - I think you are right, it makes more sense to just give the clientside a URL to send, the client shouldn't really know/care how every user is authenticated (fb/google/custom).
I added this field to the user object -
profilePicURL : {type : String}