Make a collection insert at the same time as creating the user

Hello, I use accounts-base to create new users my question is how to create 2 Settings & Balances collections at the same time as creating the user who will be linked to him by his userID

import { Accounts } from "meteor/accounts-base";
import {Balances} from "../../api/balances/balances"
import {Settings} from "../../api/settings/settings"

ServiceConfiguration.configurations.remove({
  service: "facebook"
});

ServiceConfiguration.configurations.insert({
  service: "facebook",
  appId: "xxxxxxx",
  secret: "xxxxx"
});

Accounts.onCreateUser(function(options, user) {
  console.log("user", user);
  if (!user.services.facebook) {
    user.username = user.username;
    user.email = user.email;
    user.avatar = "";
    user.followers = [];
    user.subscriptions = [];
    Settings.insert({
      userID: """" < USER ID >"""",
     apiKey:"",
     apiSecret:""
    });
    Balances.insert({
      userID: """" < USER ID >"""",
     ammout:0,
    });
    return user;
  } else {
    user.username = user.services.facebook.name;
    user.emails = user.services.facebook.email;
    user.avatar = user.services.facebook.picture.data.url;
    user.followers = [];
    user.subscriptions = [];
    Settings.insert({
      userID: """" < USER ID >"""",
     apiKey:"",
     apiSecret:""
    });
    Balances.insert({
      userID: """" < USER ID >"""",
     ammout:0,
    });
    return user;
  }
});

You can get newly created user Id like so:

const userId = Accounts.createUser(barry);

You can get newly inserted document Id like so:

const docId = Collection.insert

I suppose you could get userId first then pass it to another function that will insert documents in Settings and Balances collection.

A more advanced way you could use a package to do this like meteor-collection-hooks

yes exactly after having the user id