Hey guys, trying to sendVerificationEmailI() using loginWithFacebook()
Currently have this:
Accounts.onCreateUser(function(options, user) {
if (!user.services.facebook) {
return user;
}
const { facebook } = user.services;
user.emails = [{ address: facebook.email, verified: false }];
user.profile = {
about: "",
firstName: facebook.first_name,
lastName: facebook.last_name,
};
return user;
});
Tried using sendEmailVerification(), the problem, however, that user._id is not available yet in this before the return user
statement.
Was thinking about using callbacks, but cannot figure out how to
What is the best way to sendEmailVerification() with OAuth?
Edit: Stack with Meteor and React