-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Is your feature request related to a problem? Please describe.
When the allowAutoSignUp is used to create new users that are not already registered, only the email address is populated. In the admin it's now showing "Untitled - ID: 67dd7276167a54d34a5bd2b2" for the user in the AppAccounts grid.
Describe the solution you'd like
It would be great if it would be possible to describe a list of fields (or mapping of fields) of data that needs to be replicated to the AppUsers collection. For example: In my case, I would like to have the name and picture inserted on account creation.
In the appAuthPlugin config the following section could be added:
{
allowAutoSignUp: true,
autoSignUpFields: [
{
source: 'name',
destination: 'name',
},
{
source: 'picture',
destination: 'avatar',
},
],
Describe alternatives you've considered
Adding an extra query to fetch the data from the AppAccounts collection would be an option, but if people use different providers to log in, there is no consistent display of the name as it's unknown which of the providers is used at the time.
Thanks!