Is it possible to make the user automatically log in after calling the Accounts.createUser from a method? I just learnt that the Accounts.createUser only returns the userId on the server side.
‘users.register’(username, password) {
let _userId;
check(username, String);
check(password, String);
_userId = Accounts.createUser({
email: username,
password: password
});
Roles.addUsersToRoles(_userId, 'normal-user');
}