My application is build with React which is completely separate from Meteor. I use Asteroid to interface to Meteor which serve as backend only. I have manually create the facebook login button at front end and want to pass those data fetched from facebook to Accounts.createUser
. This method asked two parameters which is not available because I have formatted like so
const data = {
services: {
facebook: fb
},
profile: {
first_name: fb.first_name,
last_name: fb.last_name,
}
}
How to createUser without username and password? I’ve tried with Meteor.LoginWithFacebook
but no luck
Please help
Muhaimin