Meteor example of accounts-github package
git clone https://github.com/nobutakaoshiro/meteor-accounts-github-example.git
cd meteor-accounts-github-example/app
meteor
app.html
<template name="hello">
<!-- ... -->
{{> loginButtons}}
</template>
- Goto: https://github.com/settings/applications/new
- Enter app information below and click Register application
- Application name: meteor-github-accounts-example
- Homepage URL: http://localhost:3000/
- Application description: (optional)
- Authorization callback URL: http://localhost:3000/_oauth/github
- Note Client ID and Client Secret
- Open http://localhost:3000/ with Web Browser
- Click Configure GitHub Login
- Enter GitHub Dev App's Clint ID and Client Secret
- Choose the login style: Popup-based login (recommended for most applications)
- Click Save Configuration
- Open http://localhost:3000/ with Web Browser
- Click Sign in with GitHub
- Will open Pop-up window, then Sign in with GitHub Account
- Click Authorize application
meteor create app
cd app
meteor add accounts-ui accounts-github