@greatstore/cli 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -122,7 +122,7 @@ function waitForCallback(server, expectedState, timeoutMs) {
|
|
|
122
122
|
}
|
|
123
123
|
const params = url.searchParams;
|
|
124
124
|
const error = params.get("error");
|
|
125
|
-
const token = params.get("
|
|
125
|
+
const token = params.get("code");
|
|
126
126
|
const returnedState = params.get("state");
|
|
127
127
|
if (returnedState !== expectedState) {
|
|
128
128
|
res.writeHead(400, { "content-type": "text/html" });
|
|
@@ -142,7 +142,7 @@ function waitForCallback(server, expectedState, timeoutMs) {
|
|
|
142
142
|
res.writeHead(400, { "content-type": "text/html" });
|
|
143
143
|
res.end(FAILURE_HTML);
|
|
144
144
|
clearTimeout(timer);
|
|
145
|
-
settle(() => reject(new LoopbackError("Callback missing `
|
|
145
|
+
settle(() => reject(new LoopbackError("Callback missing `code` query parameter.")));
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
res.writeHead(200, { "content-type": "text/html" });
|