@seamless-auth/express 0.0.2-beta.11 → 0.0.2-beta.13

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/README.md CHANGED
@@ -222,7 +222,7 @@ Returned shape (example):
222
222
  AUTH_SERVER_URL=http://localhost:5312
223
223
  SEAMLESS_SERVICE_TOKEN=generated-secret
224
224
  COOKIE_SIGNING_KEY=local-dev-key
225
- FRONTEND_URL=https://localhost:5001
225
+ FRONTEND_URL=http://localhost:5001
226
226
  ```
227
227
 
228
228
  ---
package/dist/index.js CHANGED
@@ -342,13 +342,10 @@ function createSeamlessAuthServer(opts) {
342
342
  return;
343
343
  }
344
344
  const authorization = buildServiceAuthorization(req);
345
+ const options = method == "GET" ? { method, authorization } : { method, authorization, body: req.body };
345
346
  const upstream = await authFetch(
346
347
  `${resolvedOpts.authServerUrl}/${path}`,
347
- {
348
- method,
349
- body: req.body,
350
- authorization
351
- }
348
+ options
352
349
  );
353
350
  const data = await upstream.json();
354
351
  res.status(upstream.status).json(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamless-auth/express",
3
- "version": "0.0.2-beta.11",
3
+ "version": "0.0.2-beta.13",
4
4
  "description": "Express adapter for Seamless Auth passwordless authentication",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",