From 419ab777722627d072df72b21dd8dbff8787fd6b Mon Sep 17 00:00:00 2001 From: Paolo Scanferla Date: Mon, 15 Sep 2014 17:13:14 +0200 Subject: [PATCH] Fixed bug and bumped version --- bower.json | 2 +- dist/plugins/facebook-login.js | 5 ++++- dist/plugins/github-login.js | 5 ++++- dist/plugins/google-login.js | 5 ++++- package.json | 2 +- src/plugins/facebook-login.js | 5 ++++- src/plugins/github-login.js | 5 ++++- src/plugins/google-login.js | 5 ++++- 8 files changed, 26 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 823ce01..0eb645e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "asteroid", - "version": "0.4.2", + "version": "0.4.3", "homepage": "https://github.com/mondora/asteroid", "authors": [ "Paolo Scanferla " diff --git a/dist/plugins/facebook-login.js b/dist/plugins/facebook-login.js index 5fd035c..23c1ec3 100644 --- a/dist/plugins/facebook-login.js +++ b/dist/plugins/facebook-login.js @@ -19,7 +19,10 @@ scope: scope || "email" }; var loginUrl = "https://www.facebook.com/dialog/oauth?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("facebook", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithFacebook = function (scope) { diff --git a/dist/plugins/github-login.js b/dist/plugins/github-login.js index 2186f97..4acca0c 100644 --- a/dist/plugins/github-login.js +++ b/dist/plugins/github-login.js @@ -19,7 +19,10 @@ scope: scope || "email" }; var loginUrl = "https://github.com/login/oauth/authorize?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("github", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithGithub = function (scope) { diff --git a/dist/plugins/google-login.js b/dist/plugins/google-login.js index 051e22a..ce97a25 100644 --- a/dist/plugins/google-login.js +++ b/dist/plugins/google-login.js @@ -20,7 +20,10 @@ scope: scope || "openid email" }; var loginUrl = "https://accounts.google.com/o/oauth2/auth?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("google", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithGoogle = function (scope) { diff --git a/package.json b/package.json index 0b6a079..eae58b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asteroid", - "version": "0.4.2", + "version": "0.4.3", "description": "Aletrnative Meteor client", "main": "dist/asteroid.node.js", "scripts": { diff --git a/src/plugins/facebook-login.js b/src/plugins/facebook-login.js index 5fd035c..23c1ec3 100644 --- a/src/plugins/facebook-login.js +++ b/src/plugins/facebook-login.js @@ -19,7 +19,10 @@ scope: scope || "email" }; var loginUrl = "https://www.facebook.com/dialog/oauth?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("facebook", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithFacebook = function (scope) { diff --git a/src/plugins/github-login.js b/src/plugins/github-login.js index 2186f97..4acca0c 100644 --- a/src/plugins/github-login.js +++ b/src/plugins/github-login.js @@ -19,7 +19,10 @@ scope: scope || "email" }; var loginUrl = "https://github.com/login/oauth/authorize?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("github", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithGithub = function (scope) { diff --git a/src/plugins/google-login.js b/src/plugins/google-login.js index 051e22a..ce97a25 100644 --- a/src/plugins/google-login.js +++ b/src/plugins/google-login.js @@ -20,7 +20,10 @@ scope: scope || "openid email" }; var loginUrl = "https://accounts.google.com/o/oauth2/auth?" + Asteroid.utils.formQs(query); - return this._initOauthLogin("google", credentialToken, loginUrl); + return { + credentialToken: credentialToken, + loginUrl: loginUrl + }; }; Asteroid.prototype.loginWithGoogle = function (scope) {