Files
meteor/packages/accounts-github/github_server.js
2013-05-17 18:00:35 -07:00

10 lines
366 B
JavaScript

Accounts.oauth.registerService('github');
Accounts.addAutopublishFields({
// not sure whether the github api can be used from the browser,
// thus not sure if we should be sending access tokens; but we do it
// for all other oauth2 providers, and it may come in handy.
forLoggedInUser: ['services.github'],
forOtherUsers: ['services.github.username']
});