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
1 |
meteor add accounts-ui |
Now to add login support from one of the above listed external services, you just need to run this command
1 |
meteor add accounts-github |
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
1 |
{{loginButtons align="right"}} |
in our html file.