From a1e67222d1b4666cb8e221ddea2166eaa45d91ce Mon Sep 17 00:00:00 2001 From: Pete Boere Date: Wed, 9 Mar 2016 10:40:36 +0000 Subject: [PATCH] Manual authorization code exchange 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? --- satellizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satellizer.js b/satellizer.js index 34218f79..a7f66e94 100644 --- a/satellizer.js +++ b/satellizer.js @@ -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)) {