mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
10 lines
372 B
JavaScript
10 lines
372 B
JavaScript
Meteor.loginWithGithub = function(options, callback) {
|
|
// support a callback without options
|
|
if (! callback && typeof options === "function") {
|
|
callback = options;
|
|
options = null;
|
|
}
|
|
|
|
var credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback);
|
|
Github.requestCredential(options, credentialRequestCompleteCallback);
|
|
}; |