There is a good article on merging multiple user accounts with Meteor: http://www.meteorpedia.com/read/Merging_OAuth_accounts
I have an already logged in user. I want to the currently logged in user to login to Facebook and Linkedin and merge all the service objects. For this, I have created an Account.onCreateUser() function
Within the onCreateUser() function, I require to retrieve the following information:
- current UserId: I tried this.userId, it is not working
- current SessionId: in client, Meteor.data_connection._lastSessionId. Not sure how to get this in the server.
Any help is very useful.