diff --git a/packages/accounts-oauth-helper/oauth_client.js b/packages/accounts-oauth-helper/oauth_client.js index 7640f1a36d..5948f73a7f 100644 --- a/packages/accounts-oauth-helper/oauth_client.js +++ b/packages/accounts-oauth-helper/oauth_client.js @@ -3,7 +3,7 @@ // // @param state {String} The OAuth state generated by the client // @param url {String} url to page - Meteor.accounts.oauth.initiateLogin = function(state, url, version) { + Meteor.accounts.oauth.initiateLogin = function(state, url, oauthVersion) { // XXX these dimensions worked well for facebook and google, but // it's sort of weird to have these here. Maybe an optional // argument instead? @@ -12,7 +12,7 @@ var checkPopupOpen = setInterval(function() { if (popup.closed) { clearInterval(checkPopupOpen); - tryLoginAfterPopupClosed(state, version); + tryLoginAfterPopupClosed(state, oauthVersion); } }, 100); }; @@ -20,9 +20,9 @@ // Send an OAuth login method to the server. If the user authorized // access in the popup this should log the user in, otherwise // nothing should happen. - var tryLoginAfterPopupClosed = function(state, version) { + var tryLoginAfterPopupClosed = function(state, oauthVersion) { Meteor.apply('login', [ - {oauth: {version: version, state: state}} + {oauth: {oauthVersion: oauthVersion, state: state}} ], {wait: true}, function(error, result) { if (error) throw error;