Skip to content

Commit

Permalink
Remove force of status from winchan response handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiandouce committed Aug 28, 2015
1 parent 7cfbf6e commit ca696f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,6 @@ Auth0.prototype.loginWithPopup = function(options, callback) {

// Case for sso_dbconnection_popup returning error at result.error instead of result.err
if (result.error) {
if (null == result.status && 'unauthorized' === result.error) result.status = 401;
return callback(new LoginError(result.status, result.details || result), null, null, null, null, null);
}

Expand Down Expand Up @@ -1077,7 +1076,6 @@ Auth0.prototype.loginWithUsernamePasswordAndSSO = function (options, callback) {

// Case for sso_dbconnection_popup returning error at result.error instead of result.err
if (result.error) {
if (null == result.status && 'unauthorized' === result.error) result.status = 401;
return callback(new LoginError(result.status, result.details || result), null, null, null, null, null);
}

Expand Down

0 comments on commit ca696f0

Please sign in to comment.