Login with GitHub, twitter or facebook in Meteor

Meteor comes with an authentication system , which supports login with external services like

  • Facebook (accounts-facebook)
  • Github (accounts-github)
  • Google (accouts-google)
  • Meetup (accounts-meetup)
  • Twitter (accounts-twitter)
  • Weibo (accounts-weibo)

Meteor also provides forms for login, signup, password change, and password reset. To add the accounts and login controls in your application you need to add ‘account-ui’ package in your application

Now to add login support from one of the above listed external services, you just need to run this command

Now you will see, it will guide you through the required configuration. Similarly you can add other services also. To show the login buttons on our webpage we need to add

in our html file.