@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 +1 -1
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/README.md
CHANGED
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);
|