@denodeio/seshat 0.0.27 → 0.0.29
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/build/cjs/dist/mjs/src/index.d.ts +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/mjs/dist/mjs/src/index.d.ts +1 -1
- package/build/mjs/index.d.ts +1 -1
- package/build/mjs/index.js +2 -2
- package/build/mjs/index.js.map +1 -1
- package/package.json +1 -1
package/build/cjs/index.d.ts
CHANGED
package/build/cjs/index.js
CHANGED
|
@@ -6544,7 +6544,7 @@ signer.signData = signData;
|
|
|
6544
6544
|
const signer_1 = signer;
|
|
6545
6545
|
__exportStar(signer, exports);
|
|
6546
6546
|
const sessionVerifier = function (options) {
|
|
6547
|
-
const {
|
|
6547
|
+
const { fieldName = "session", ...actualOptions } = options;
|
|
6548
6548
|
if (!options || !options.barongJwtPublicKey) {
|
|
6549
6549
|
throw new Error("Barong JWT Public key should be set");
|
|
6550
6550
|
}
|
|
@@ -6565,7 +6565,7 @@ signer.signData = signData;
|
|
|
6565
6565
|
return;
|
|
6566
6566
|
}
|
|
6567
6567
|
try {
|
|
6568
|
-
req[
|
|
6568
|
+
req[fieldName] = jsonwebtoken_1.default.verify(authHeader, barongJwtPublicKey, verificationOptions);
|
|
6569
6569
|
}
|
|
6570
6570
|
catch (error) {
|
|
6571
6571
|
res.status(403);
|