Skip to content

Commit

Permalink
Fixed bug and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Scanferla committed Sep 15, 2014
1 parent b3e4bfb commit 419ab77
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asteroid",
"version": "0.4.2",
"version": "0.4.3",
"homepage": "https://github.com/mondora/asteroid",
"authors": [
"Paolo Scanferla <[email protected]>"
Expand Down
5 changes: 4 additions & 1 deletion dist/plugins/facebook-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion dist/plugins/github-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion dist/plugins/google-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asteroid",
"version": "0.4.2",
"version": "0.4.3",
"description": "Aletrnative Meteor client",
"main": "dist/asteroid.node.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/facebook-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/github-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/google-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 419ab77

Please sign in to comment.