@denodeio/seshat 0.0.28 → 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/mjs/index.d.ts
CHANGED
package/build/mjs/index.js
CHANGED
|
@@ -6508,7 +6508,7 @@ function signData(payload, options) {
|
|
|
6508
6508
|
}
|
|
6509
6509
|
|
|
6510
6510
|
const sessionVerifier = function (options) {
|
|
6511
|
-
const {
|
|
6511
|
+
const { fieldName = "session", ...actualOptions } = options;
|
|
6512
6512
|
if (!options || !options.barongJwtPublicKey) {
|
|
6513
6513
|
throw new Error("Barong JWT Public key should be set");
|
|
6514
6514
|
}
|
|
@@ -6529,7 +6529,7 @@ const sessionVerifier = function (options) {
|
|
|
6529
6529
|
return;
|
|
6530
6530
|
}
|
|
6531
6531
|
try {
|
|
6532
|
-
req[
|
|
6532
|
+
req[fieldName] = jwt.verify(authHeader, barongJwtPublicKey, verificationOptions);
|
|
6533
6533
|
}
|
|
6534
6534
|
catch (error) {
|
|
6535
6535
|
res.status(403);
|