Hi, I use Accounts.onCreateUser to add some values to the user profile
Accounts.onCreateUser((options, user) => {
const userToCreate = user;
if (options.profile) userToCreate.profile = options.profile;
// other things to do HERE
return userToCreate;
But I would like also to have other things to do, such as inserting/updating some documents in various collections.
The problem is that this takes a few seconds (8/9 seconds) and increases the waiting time for the end user to finish account creation.
Is there a way to run this separately (no dependency with the returned userToCreate) and return the userToCreate faster ?