@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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -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("token");
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 `token` query parameter.")));
145
+ settle(() => reject(new LoopbackError("Callback missing `code` query parameter.")));
146
146
  return;
147
147
  }
148
148
  res.writeHead(200, { "content-type": "text/html" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatstore/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "CLI for authoring and shipping GreatStore custom components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",