I am new to meteor . I wish to do a google+ sign in in meteor.js , I am using "accounts-ui" package and have put {{> loginButtons}}
in the html file . Everything works just fine , except that I wish to access the email id of the user and I can not figure out how to access the response from google+ .
You could use the accountsClientOrServer.onLogin(func)
callback, for example:
Accounts.onLogin(function(user){
console.log(user.user.services.google.email);
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.