When using onCreateUser (accounts package) what are the keys for first name, email and avatar url? For example, with Facebook it’s user.services.facebook.first_name, user.services.facebook.email, etc.
Hey @methodx, take a peek at this file: https://github.com/cleverbeagle/pup/blob/master/imports/modules/get-oauth-profile.js. It includes mapping for GitHub and all the others. It technically comes through on the profile
object passed to onCreateUser
as the name
field. This code splits the name into first and last but could easily be refactored to leave as the full name.
Hope that helps!
2 Likes