Skip to content

Commit

Permalink
Manual authorization code exchange
Browse files Browse the repository at this point in the history
I'm integrating with an existing system where we already have authorization code exchange setup already.
Surely this is meant to include a return statement so as to prevent the following exchangeForToken call?
  • Loading branch information
peteboere committed Mar 9, 2016
1 parent b50bacc commit a1e6722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satellizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.ex
// Satellizer's magic by doing authorization code exchange and
// saving a token manually.
if (defaults.responseType === 'token' || !defaults.url) {
defer.resolve(oauthData);
return defer.resolve(oauthData);
}

if (oauthData.state && oauthData.state !== storage.get(stateName)) {
Expand Down

0 comments on commit a1e6722

Please sign in to comment.